/** * Initializes the widget. * This renders the form open tag. */ public function init() { if (!isset($this->options['id'])) { $this->options['id'] = $this->getId(); } if (!isset($this->fieldConfig['class'])) { $this->fieldConfig['class'] = ActiveField::className(); } echo Html::beginForm($this->action, $this->method, $this->options); }
protected function frontendMonsterPatch() { Yii::$container->set(ActiveField::className(), ['options' => ['class' => 'm-form__col']]); }