Наследование: extends yii\base\Action
Пример #1
0
 /**
  * @inheritdoc
  */
 public function actions()
 {
     //var_dump(\Yii::$app->request->getCookies()->getValue(\Yii::$app->request->csrfParam));
     // var_dump(\Yii::$app->request->getBodyParam(\Yii::$app->request->csrfParam));
     // die;
     return ['logout' => ['class' => LogoutAction::className()]];
 }
Пример #2
0
 /**
  * @inheritdoc
  */
 public function actions()
 {
     return ['logout' => ['class' => LogoutAction::className()], 'client' => ['class' => 'yii\\authclient\\AuthAction', 'successCallback' => [$this, 'onAuthSuccess'], 'successUrl' => Url::to(['/cms/user/profile']), 'cancelUrl' => Url::to(['/cms/user/profile'])]];
 }
Пример #3
0
 /**
  * @inheritdoc
  */
 public function actions()
 {
     return ['error' => ['class' => 'yii\\web\\ErrorAction'], 'captcha' => ['class' => 'yii\\captcha\\CaptchaAction', 'fixedVerifyCode' => YII_ENV_TEST ? 'testme' : null], 'auth' => ['class' => 'yii\\authclient\\AuthAction', 'successCallback' => [$this, 'successAuthclientCallback']], 'logout' => ['class' => LogoutAction::className()]];
 }
Пример #4
0
 /**
  * @inheritdoc
  */
 public function actions()
 {
     return ['logout' => ['class' => LogoutAction::className()]];
 }