/** * Initializes the widget. */ public function init() { parent::init(); MainAsset::register($this->getView()); InitAsset::register($this->getView()); TooltipAsset::register($this->getView()); echo Html::beginTag('body', ['class' => 'page-sidebar-closed-hide-logo page-container-bg-solid page-sidebar-closed-hide-logo page-boxed page-header-fixed page-footer-fixed']); $this->getView()->beginBody(); }
<?php use anli\metronic\assets\InitAsset; use anli\metronic\assets\MainAsset; use yii\helpers\Html; use yii\helpers\Url; use yii\widgets\Breadcrumbs; use yii\bootstrap\Modal; use yii\widgets\Pjax; use kartik\alert\AlertBlock; /* @var $this \yii\web\View */ /* @var $content string */ MainAsset::register($this); InitAsset::register($this); $headerPath = Yii::$app->getModule('metronic')->headerPath; $sidebarPath = Yii::$app->getModule('metronic')->sidebarPath; $footerPath = Yii::$app->getModule('metronic')->footerPath; ?> <?php $this->beginPage(); ?> <!DOCTYPE html> <html lang="<?php echo Yii::$app->language; ?> "> <head> <meta charset="<?php echo Yii::$app->charset;