Example #1
0
 /**
  * Inits bundle
  */
 public function init()
 {
     Make::getComponent()->takeLayout($this);
     return parent::init();
 }
Example #2
0
<?php

use suxiaolin\make\Make;
use yii\helpers\Html;
$makeBundle = Make::registerThemeAsset($this);
$this->beginPage();
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="<?php 
echo Yii::$app->charset;
?>
">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="author" content="suxiaolin">
    <?php 
echo Html::csrfMetaTags();
?>
    <title><?php 
echo Html::encode($this->title);
?>
</title>
    <?php 
$this->head();
?>
  </head>
  <!-- LAYOUT: Apply "submenu-hover" class to body element to have sidebar submenu show on mouse hover -->
  <!-- LAYOUT: Apply "sidebar-collapsed" class to body element to have collapsed sidebar -->
  <!-- LAYOUT: Apply "sidebar-top" class to body element to have sidebar on top of the page -->
  <!-- LAYOUT: Apply "sidebar-hover" class to body element to show sidebar only when your mouse is on left / right corner -->