Commit 5b19bab761cea9a01e57603ae73d0320a4c4b270
Merge remote-tracking branch 'origin/master'
Showing
3 changed files
with
13 additions
and
2 deletions
Show diff stats
frontend/controllers/PageController.php
| @@ -54,6 +54,15 @@ | @@ -54,6 +54,15 @@ | ||
| 54 | ) | 54 | ) |
| 55 | ->all(); | 55 | ->all(); |
| 56 | 56 | ||
| 57 | + if ($model->id == 6) { | ||
| 58 | + return $this->render( | ||
| 59 | + '@frontend/views/site/about', | ||
| 60 | + [ | ||
| 61 | + 'page_about' => $model, | ||
| 62 | + ] | ||
| 63 | + ); | ||
| 64 | + } | ||
| 65 | + | ||
| 57 | return $this->render( | 66 | return $this->render( |
| 58 | 'view', | 67 | 'view', |
| 59 | [ | 68 | [ |
frontend/controllers/SiteController.php
frontend/views/layouts/main.php
| @@ -287,7 +287,10 @@ _________________________________________________________ --> | @@ -287,7 +287,10 @@ _________________________________________________________ --> | ||
| 287 | ]; | 287 | ]; |
| 288 | $items[] = [ | 288 | $items[] = [ |
| 289 | 'label' => \Yii::t('app', 'О клинике'), | 289 | 'label' => \Yii::t('app', 'О клинике'), |
| 290 | - 'url' => [ 'site/about' ], | 290 | + 'url' => [ |
| 291 | + 'page/view', | ||
| 292 | + 'id' => 6, | ||
| 293 | + ], | ||
| 291 | ]; | 294 | ]; |
| 292 | $items[] = [ | 295 | $items[] = [ |
| 293 | 'label' => \Yii::t('app', 'Галерея'), | 296 | 'label' => \Yii::t('app', 'Галерея'), |