Commit 79ed8cbc authored by Shakarim Sapa's avatar Shakarim Sapa

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

parent b5e74b47
...@@ -223,22 +223,22 @@ class BaseForm extends \yii\widgets\ActiveForm ...@@ -223,22 +223,22 @@ class BaseForm extends \yii\widgets\ActiveForm
} }
public function initCustom($config) { public function initCustom($config) {
ob_start(); // ob_start();
ob_implicit_flush(false); // ob_implicit_flush(false);
$form = ActiveForm::begin(ArrayHelper::merge( // $form = ActiveForm::begin(ArrayHelper::merge(
[ // [
'enableAjaxValidation' => true, // 'enableAjaxValidation' => true,
'enableClientValidation' => false, // 'enableClientValidation' => false,
'validateOnType' => true, // 'validateOnType' => true,
], // ],
$config['activeForm'] // $config['activeForm']
)); // ));
foreach($config['options'] as $item) { // foreach($config['options'] as $item) {
echo $item; // echo $item;
} // }
$form->end(); // $form->end();
$out = ob_get_contents(); // $out = ob_get_contents();
ob_end_clean(); // ob_end_clean();
$this->out = $out; $this->out = $out;
self::run(); 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