Initial commit,修正
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/* @var $this \yii\web\View */
|
||||
/* @var $content string */
|
||||
|
||||
$controller = $this->context;
|
||||
$menus = $controller->module->menus;
|
||||
$route = $controller->route;
|
||||
foreach ($menus as $i => $menu) {
|
||||
$menus[$i]['active'] = strpos($route, trim($menu['url'][0], '/')) === 0;
|
||||
}
|
||||
$this->params['nav-items'] = $menus;
|
||||
$this->params['top-menu'] = true;
|
||||
?>
|
||||
<?php $this->beginContent($controller->module->mainLayout) ?>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<?= $content ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php $this->endContent(); ?>
|
||||
Reference in New Issue
Block a user