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