Commit 53856388 authored by Shakarim Sapa's avatar Shakarim Sapa

- Fix

parent 7a9b51c3
...@@ -27,8 +27,8 @@ $blocks = \common\modules\content\models\CoBlocks::find()->all(); ...@@ -27,8 +27,8 @@ $blocks = \common\modules\content\models\CoBlocks::find()->all();
/** @var \common\modules\content\models\CoCategory $category */ /** @var \common\modules\content\models\CoCategory $category */
$category = \common\modules\content\models\CoCategory::findOne($id); $category = \common\modules\content\models\CoCategory::findOne($id);
if (!is_null($category)) { if (!is_null($category)) {
echo Html::input('text', 'category', $category->name, ['disabled' => true, 'class' => 'form-control']);
echo $form->field($model, 'category_id')->hiddenInput(['value' => $id]); echo $form->field($model, 'category_id')->hiddenInput(['value' => $id]);
echo Html::input('text', 'category', $category->name, ['disabled' => true, 'class' => 'form-control']);
} }
?> ?>
......
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