controller->action->id === 'login') { /** * Do not use this code in your template. Remove it. * Instead, use the code $this->layout = '//main-login'; in your controller. */ echo $this->render( 'main-login', ['content' => $content] ); } else { \dmstr\web\AdminLteAsset::register($this); \common\assets\CommonAsset::register($this); \backend\assets\AppAsset::register($this); $directoryAsset = Yii::$app->assetManager->getPublishedUrl('@vendor/almasaeed2010/adminlte/dist'); ?> beginPage() ?> <?= Html::encode($this->title) ?> head() ?> beginBody() ?>
render( 'header.php', ['directoryAsset' => $directoryAsset] ) ?> render( 'left.php', ['directoryAsset' => $directoryAsset] ) ?> render( 'content.php', ['content' => $content, 'directoryAsset' => $directoryAsset] ) ?>
endBody() ?> endPage() ?>