예제 #1
0
 public function init()
 {
     parent::init();
     if (!$this->isLogin()) {
         return $this->redirect('/wap/user/login');
     }
 }
예제 #2
0
 public function beforeAction($action)
 {
     $this->layout = false;
     $this->enableCsrfValidation = false;
     return parent::beforeAction($action);
 }