PHP Classes

File: attachmanager_views_examples/attach_index.php

Recommend this page to a friend!
  Classes of Insolita  >  Ext Imperavi  >  attachmanager_views_examples/attach_index.php  >  Download  
File: attachmanager_views_examples/attach_index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Ext Imperavi
Integrates the Imperavi editor in YII applications
Author: By
Last change:
Date: 6 months ago
Size: 1,583 bytes
 

Contents

Class file image Download
<?php
/**
 * ?????? ???????? ???? ????????? ????????
 * ????? ?????????? ID ?????????

 * @var \yii\data\ActiveDataProvider $imagesDataProvider
 * @var \yii\data\ActiveDataProvider $filesDataProvider
 */
?>
<section id="redactor-modal-image-manager">
    <div class="modal-body">
        <?php echo \yii\bootstrap\Tabs::widget(
            [
               
'items' => [
                    [
                       
'label' => '????????? ???????????',
                       
'active' => true,
                       
'content' => $this->render(
                           
'_attachform',
                            [
                               
'model' => $model,
                               
'dataProvider' => $imagesDataProvider, //??? ??????????? ???????????
                               
'type' => 'image'
                           
]
                        )
                    ],
                    [
                       
'label' => '????????? ????',
                       
'content' => $this->render(
                           
'_attachform',
                            [
                               
'model' => $model,
                               
'dataProvider' => $filesDataProvider, //??? ??????????? ?????
                               
'type' => 'file'
                           
]
                        )
                    ]
                ]
            ]
        )
?>

    </div>


</section>


For more information send a message to info at phpclasses dot org.