Commit 1c3e8a3777c2ff734fc07fd36feb8319b1ee7478
1 parent
249534b0
-Seo text in brand and some admin fix
Showing
3 changed files
with
12 additions
and
2 deletions
Show diff stats
backend/controllers/BrandController.php
| ... | ... | @@ -102,7 +102,7 @@ class BrandController extends Controller |
| 102 | 102 | |
| 103 | 103 | if ($model->load(Yii::$app->request->post()) && $model->save()) { |
| 104 | 104 | |
| 105 | - return $this->redirect(['view', 'id' => $model->brand_id]); | |
| 105 | + return $this->redirect(['brand/view', 'id' => $model->brand_id]); | |
| 106 | 106 | } else { |
| 107 | 107 | return $this->render('update', [ |
| 108 | 108 | 'model' => $model, | ... | ... |
frontend/views/catalog/brand.php
| ... | ... | @@ -45,8 +45,13 @@ $this->params['breadcrumbs'][] = $brand->name; |
| 45 | 45 | |
| 46 | 46 | <h1 class="title"><?= Seo::widget(['row' => 'h1']) ?></h1> |
| 47 | 47 | |
| 48 | + <div class="brand-seo-text"> | |
| 49 | + <?=$brand->seo_text?> | |
| 50 | + </div> | |
| 51 | + <div class="clearfix"></div> | |
| 48 | 52 | |
| 49 | - <div class="list_filters_links"> | |
| 53 | + | |
| 54 | + <div class="list_filters_links"> | |
| 50 | 55 | <div class="sort_block"> |
| 51 | 56 | <span>Сортировка:</span> |
| 52 | 57 | <?= \yii\widgets\LinkSorter::widget([ | ... | ... |
frontend/web/css/css_header.css