Пример #1
0
 /**
  * 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);
 }
Пример #2
0
 protected function frontendMonsterPatch()
 {
     Yii::$container->set(ActiveField::className(), ['options' => ['class' => 'm-form__col']]);
 }