/** * @inheritdoc */ public function init() { /** * @var Module $m */ $m = Yii::$app->getModule('user'); Module::validateConfig($this->_module); $this->attributes += ['email' => ['type' => Form::INPUT_TEXT, 'hint' => Yii::t('user', 'Please fill out your email to receive a link to reset your password')]]; $this->leftFooter = $m->button(Module::BTN_HOME, [], ['tabindex' => 1]) . $m->button(Module::BTN_NEW_USER, [], ['tabindex' => 2]); $this->rightFooter = $m->button(Module::BTN_RESET_FORM, [], ['tabindex' => 3]) . ' ' . $m->button(Module::BTN_SUBMIT_FORM, [], ['tabindex' => 0]); parent::init(); }
/** * Initialize the model for the user module */ public function init() { Module::validateConfig($this->_module); parent::init(); }
/** * @inheritdoc */ public function init() { Module::validateConfig($this->_module); $this->_settings = $this->_module->loginSettings; parent::init(); }