public function run() { $this->options['class'] = 'ajax-form'; parent::run(); $content = ob_get_clean(); return Html::tag('div', $content, ['class' => 'ajax-form-wrapper', 'style' => "max-width:{$this->maxWidth}px"]); }
public function run() { echo Html::endTag('div'); $buttons = Html::tag('div', Html::submitButton(__('Search'), ['class' => 'btn btn-primary'])); echo Html::tag('div', $buttons, ['class' => 'panel-footer ' . $this->extraClass . $this->targetClass]); echo Html::endTag('div'); parent::run(); }
public function run() { ob_start(); ob_implicit_flush(false); parent::run(); ob_end_clean(); echo Html::endTag('div'); }
public function run() { parent::run(); if (isset(Html::$inputIdPrefix)) { Html::$inputIdPrefix = ''; } if (isset(Html::$inputIdSuffix)) { Html::$inputIdSuffix = ''; } }
/** * @inheritdoc */ public function run() { $this->begin($this->config); if ($this->displayErrorSummary) { echo $this->errorSummary($this->model); } foreach ($this->fields as $field) { if (is_array($field)) { if (!method_exists(ActiveField::className(), $field[1])) { echo $this->field($this->model, $field[0], isset($field[2]) ? $field[2] : [])->widget($field[1], isset($field[3]) ? $field[3] : []); } else { if (!stripos($field[1], 'list')) { echo $this->field($this->model, $field[0], isset($field[2]) ? $field[2] : [])->{$field}[1](isset($field[3]) ? $field[3] : []); } else { echo $this->field($this->model, $field[0], isset($field[3]) ? $field[3] : [])->{$field}[1](isset($field[2]) ? $field[2] : [], isset($field[4]) ? $field[4] : []); } } } elseif (is_string($field)) { echo $this->field($this->model, $field)->textInput(); } else { throw new InvalidConfigException('Each field should be either a string or array.'); } } echo Html::beginTag('div', $this->buttonGroupOptions); foreach ($this->buttons as $btn) { echo $btn; } echo Html::endTag('div'); parent::run(); }