예제 #1
0
 public function behaviors()
 {
     $behaviors = parent::behaviors();
     if ($this->action->id == 'code' || $this->action->id == 'vcode') {
         unset($behaviors['authenticator']);
     }
     return $behaviors;
 }
예제 #2
0
 public function actions()
 {
     $actions = parent::actions();
     unset($actions['index'], $actions['delete'], $actions['create'], $actions['update'], $actions['view']);
     return $actions;
 }