public function init() { parent::init(); RbacAsset::register($this->view); $pid = 5874; $this->tabs = SystemConfig::GetArrayValue("THIRDMENU", $pid, "USER"); }
public function beforeAction($action) { if (!parent::beforeAction($action)) { return false; } if (in_array($action->id, ['login', 'register', 'confirm', 'forgot', 'reset'])) { $this->layout = "/main"; if (!Yii::$app->user->isGuest) { return $this->redirect(Yii::$app->getModule("user")->loginRedirect); } } return true; // or false to not run the action }
/** * @inheritdoc */ public function init() { parent::init(); }
public function init() { parent::init(); $this->getPluginName(); }