/** * @inheritdoc */ public function init() { $this->captchaAction = Yii::getAlias('@captchaRoute'); parent::init(); }