diff --git a/backend/controllers/BrandController.php b/backend/controllers/BrandController.php index c23a105..bd0c444 100755 --- a/backend/controllers/BrandController.php +++ b/backend/controllers/BrandController.php @@ -102,7 +102,7 @@ class BrandController extends Controller if ($model->load(Yii::$app->request->post()) && $model->save()) { - return $this->redirect(['view', 'id' => $model->brand_id]); + return $this->redirect(['brand/view', 'id' => $model->brand_id]); } else { return $this->render('update', [ 'model' => $model, diff --git a/frontend/views/catalog/brand.php b/frontend/views/catalog/brand.php index d556d04..c4d17f2 100755 --- a/frontend/views/catalog/brand.php +++ b/frontend/views/catalog/brand.php @@ -45,8 +45,13 @@ $this->params['breadcrumbs'][] = $brand->name;