public function init() { parent::init(); static::checkRequirements(); if (!isset($this->imageOptions['id'])) { $this->imageOptions['id'] = $this->options['id'] . '-image'; } }
/** * @inheritdoc */ public function init() { if ($this->model === null) { throw new InvalidConfigException('This functionality works only with inputs created from models'); } $this->captchaAction = Yii::getAlias('@captchaRoute'); parent::init(); }