From 820a94f3a189ab47f20693d9304f0a5b82ee7362 Mon Sep 17 00:00:00 2001 From: Yarik Date: Thu, 19 Nov 2015 11:45:56 +0200 Subject: [PATCH] Fix файлов представлений. --- frontend/views/option/create.php | 13 +++---------- frontend/views/option/update.php | 15 +++++---------- 2 files changed, 8 insertions(+), 20 deletions(-) diff --git a/frontend/views/option/create.php b/frontend/views/option/create.php index f8db730..7c128cc 100644 --- a/frontend/views/option/create.php +++ b/frontend/views/option/create.php @@ -11,16 +11,9 @@ $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Options'), 'url' => $this->params['breadcrumbs'][] = $this->title; ?>
-

title) ?>

- - render('_form', [ - 'model' => $model, - 'models' => $models, - 'modellang' => $modellang, - 'modeldb' => $modeldb, - 'model_id' => $model_id, - 'fields' => $fields - ]) ?> + render('_form', $oneform); + }?>
diff --git a/frontend/views/option/update.php b/frontend/views/option/update.php index 35b6600..1bb652d 100644 --- a/frontend/views/option/update.php +++ b/frontend/views/option/update.php @@ -7,20 +7,15 @@ use yii\helpers\Html; $this->title = Yii::t('app', 'Update {modelClass}: ', [ 'modelClass' => 'Option', -]) . ' ' . $models[\Yii::$app->request->get('id')]->name; +]) . ' ' . $forms[0]['models'][\Yii::$app->request->get('id')]->name; $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Options'), 'url' => ['index']]; -$this->params['breadcrumbs'][] = ['label' => $models[\Yii::$app->request->get('id')]->name, 'url' => ['view', 'id' => $models[\Yii::$app->request->get('id')]->option_id]]; +$this->params['breadcrumbs'][] = ['label' => $forms[0]['models'][\Yii::$app->request->get('id')]->name, 'url' => ['view', 'id' => $forms[0]['models'][\Yii::$app->request->get('id')]->option_id]]; $this->params['breadcrumbs'][] = Yii::t('app', 'Update'); ?>
-

title) ?>

- - render('_form_edit', [ - 'models' => $models, - 'modellang' => $modellang, - 'modeldb' => $modeldb, - 'model_id' => $model_id - ]) ?> + render('_form_edit', $oneform); + }?>
-- libgit2 0.21.4