Exemplo n.º 1
0
 public function init()
 {
     parent::init();
     // ------------------------ SET LAYOUT ---------------------------------
     $this->layout = '@common/layouts/blank.php';
     // --------------------------- TITLE -----------------------------------
     $this->getView()->title = S::upperCamelize('test');
 }
Exemplo n.º 2
0
 /**
  * Declares external actions for the controller.
  *
  * @return array
  */
 public function actions()
 {
     return ArrayHelper::merge(parent::actions(), ['captcha' => ['class' => 'yii\\captcha\\CaptchaAction', 'fixedVerifyCode' => YII_ENV_TEST ? 'testme' : null]]);
 }
Exemplo n.º 3
0
 public function actions()
 {
     return ArrayHelper::merge(parent::actions(), ['auth' => ['class' => 'yii\\authclient\\AuthAction', 'successCallback' => [$this, 'successCallback']]]);
 }