public function actionTest() { $list = MenuComponent::getAllMenus(); }
<?php /* @var $this \yii\web\View */ /* @var $content string */ use backend\assets\AppAsset; use yii\helpers\Html; use backend\components\MenuComponent; use backend\components\CssComponent; use app\models\Webcss; AppAsset::register($this); $module = Yii::$app->controller->module->id; $controller = Yii::$app->controller->id; $action = Yii::$app->controller->action->id; $firstMenus = MenuComponent::getFirstMenus(); $secondMenus = MenuComponent::getSecondMenus($module); $css = CssComponent::getCssList($module, $controller, $action, Webcss::TYPE_CSS); $js = CssComponent::getCssList($module, $controller, $action, Webcss::TYPE_JS); ?> <!DOCTYPE html> <html lang="<?php echo Yii::$app->language; ?> "> <head> <meta charset="<?php echo Yii::$app->charset; ?> "> <meta name="viewport" content="width=device-width, initial-scale=1"> <?php echo Html::csrfMetaTags();