Пример #1
0
 /**
  * @inheritdoc
  */
 public function attributeLabels()
 {
     return ['id' => Module::t('file', 'ID'), 'filesystem' => Module::t('file', 'Filesystem'), 'path' => Module::t('file', 'Path'), 'size' => Module::t('file', 'Size'), 'mime_type' => Module::t('file', 'Mime type'), 'created_at' => Module::t('file', 'Created at'), 'updated_at' => Module::t('file', 'Updated at')];
 }
Пример #2
0
<?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>