Commit 707d9a92 authored by Shakarim Sapa's avatar Shakarim Sapa

- Fix

parent 53856388
......@@ -75,6 +75,7 @@ class CasesAdminController extends AdminController {
if (Yii::$app->request->isPost)
{
var_dump($_POST); die;
$transaction = Yii::$app->db->beginTransaction();
try
......
......@@ -27,8 +27,7 @@ $blocks = \common\modules\content\models\CoBlocks::find()->all();
/** @var \common\modules\content\models\CoCategory $category */
$category = \common\modules\content\models\CoCategory::findOne($id);
if (!is_null($category)) {
echo $form->field($model, 'category_id')->hiddenInput(['value' => $id]);
echo Html::input('text', 'category', $category->name, ['disabled' => true, 'class' => 'form-control']);
echo Html::hiddenInput('CoContent[category]', $category->name);
}
?>
......
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