Commit 8b510776de4a916ea2fc218f6e8a0d831bc50b41

Authored by Alexey Boroda
1 parent 5a414589

-Made something terrible

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
@@ -90,7 +90,6 @@ @@ -90,7 +90,6 @@
90 'page_about' => $page_about, 90 'page_about' => $page_about,
91 ] 91 ]
92 ); 92 );
93 - return $this->render('about');  
94 } 93 }
95 94
96 /** 95 /**
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', 'Галерея'),