File tree Expand file tree Collapse file tree 4 files changed +53
-1
lines changed Expand file tree Collapse file tree 4 files changed +53
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,11 @@ public static function getAdminMenu()
5757 'icon ' => 'clone ' ,
5858 'url ' => '/cms/admin/block ' ,
5959 ],
60+ [
61+ 'label ' => Yii::t ('cms ' , 'Files ' ),
62+ 'icon ' => 'files-o ' ,
63+ 'url ' => '/cms/admin/files ' ,
64+ ],
6065 ]
6166 ];
6267 }
Original file line number Diff line number Diff line change 88use nullref \core \interfaces \IAdminController ;
99use Yii ;
1010use yii \caching \TagDependency ;
11- use yii \data \ActiveDataProvider ;
1211use yii \filters \VerbFilter ;
1312use yii \web \Controller ;
1413use yii \web \NotFoundHttpException ;
Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * @author Dmytro Karpovych
4+ * @copyright 2016 NRE
5+ */
6+
7+
8+ namespace nullref \cms \controllers \admin ;
9+
10+ use nullref \core \interfaces \IAdminController ;
11+ use yii \web \Controller ;
12+
13+
14+ class FilesController extends Controller implements IAdminController
15+ {
16+ public function actionIndex ()
17+ {
18+ return $ this ->render ('index ' );
19+ }
20+ }
Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * @var $this \yii\web\View
4+ */
5+ use mihaildev \elfinder \ElFinder ;
6+ use yii \helpers \Html ;
7+
8+ $ this ->title = Yii::t ('cms ' , 'Files ' );
9+ $ this ->params ['breadcrumbs ' ][] = $ this ->title ;
10+ ?>
11+ <div class="files-index">
12+
13+ <div class="row">
14+ <div class="col-lg-12">
15+ <h1 class="page-header">
16+ <?= Html::encode ($ this ->title ) ?>
17+ </h1>
18+ </div>
19+ </div>
20+
21+ <?= ElFinder::widget ([
22+ 'controller ' => 'elfinder-backend ' ,
23+ 'frameOptions ' => [
24+ 'style ' => 'min-height: 500px; width:100% ' ,
25+ ]
26+ ]) ?>
27+
28+ </div>
You can’t perform that action at this time.
0 commit comments