public function init() { parent::init(); $this->metaKeywords = $this->metaDescription = $this->app->name; }
public function accessRules() { return array_merge(parent::accessRules(), [['allow', 'actions' => ['login', 'error', 'captcha'], 'users' => ['*']], ['allow', 'actions' => ['index', 'logout'], 'users' => ['@']], ['deny', 'users' => ['*']]]); }