Commit 6e5c5f1e authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавили отключение буфера и его очистку

parent d20136b1
......@@ -217,29 +217,29 @@ class BaseForm extends \yii\widgets\ActiveForm
unset($config['buttons']);
self::initCustom($config);
// self::initCustom($config);
return true;
}
public function initCustom($config) {
// ob_start();
// ob_implicit_flush(false);
// $form = ActiveForm::begin(ArrayHelper::merge(
// [
// 'enableAjaxValidation' => true,
// 'enableClientValidation' => false,
// 'validateOnType' => true,
// ],
// $config['activeForm']
// ));
// foreach($config['options'] as $item) {
// echo $item;
// }
// $form->end();
// $out = ob_get_contents();
// ob_end_clean();
// $this->out = $out;
ob_start();
ob_implicit_flush(false);
$form = ActiveForm::begin(ArrayHelper::merge(
[
'enableAjaxValidation' => true,
'enableClientValidation' => false,
'validateOnType' => true,
],
$config['activeForm']
));
foreach($config['options'] as $item) {
echo $item;
}
$form->end();
$out = ob_get_contents();
ob_end_clean();
$this->out = $out;
self::run();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment