<?php /** * @var \yii\web\View $this View * @var array $options Options */ use im\elfinder\ElFinderAsset; use yii\helpers\Json; ElFinderAsset::register($this); $this->registerJs("\$('#elfinder').elfinder(" . Json::encode($options) . ").elfinder('instance');"); $this->beginPage(); ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>elFinder 2.0</title> <?php $this->head(); ?> </head> <body> <?php $this->beginBody(); ?> <div id="elfinder"></div> <?php $this->endBody(); ?> </body> </html>
<?php use im\elfinder\ElFinderAsset; use im\elfinder\widgets\ElFinder; use im\filesystem\Module; /* @var $this yii\web\View */ ElFinderAsset::noConflict($this); $this->title = Module::t('filesystem', 'Filesystem'); $this->params['subtitle'] = Module::t('filesystem', 'File manager'); $this->params['breadcrumbs'][] = $this->title; ?> <div class="box"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $this->params['subtitle']; ?> </h3> </div> <div class="box-body"> <?php echo ElFinder::widget(); ?> </div> </div>