From fa19d5d8c73f1e74fe1f66cdf68dbfc4177f44bb Mon Sep 17 00:00:00 2001 From: Eugeny Galkovskiy Date: Thu, 14 Sep 2017 16:41:36 +0300 Subject: [PATCH] Страница Цены --- frontend/controllers/SiteController.php | 9 ++++++++- frontend/views/site/price.php | 14 ++++++++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/frontend/controllers/SiteController.php b/frontend/controllers/SiteController.php index b34a4cd..870ec6f 100755 --- a/frontend/controllers/SiteController.php +++ b/frontend/controllers/SiteController.php @@ -2,6 +2,7 @@ namespace frontend\controllers; use artbox\core\models\Feedback; + use artbox\core\models\Page; use common\models\Settings; use Yii; use yii\filters\VerbFilter; @@ -150,6 +151,12 @@ } public function actionPrice(){ - return $this->render('price'); + $page_stom = Page::find()->with('lang')->where(['id' => 3])->one(); + $page_cosm = Page::find()->with('lang')->where(['id' => 4])->one(); + + return $this->render('price',[ + 'page_stom' => $page_stom, + 'page_cosm' => $page_cosm, + ]); } } diff --git a/frontend/views/site/price.php b/frontend/views/site/price.php index 92732b0..689f57b 100644 --- a/frontend/views/site/price.php +++ b/frontend/views/site/price.php @@ -12,6 +12,8 @@ use yii\web\View; * @var SeoComponent $seo * @var Image[] $images * @var string $lefts + * @var Page $page_stom + * @var Page $page_cosm * @var string $body */ $seo = \Yii::$app->get('seo'); @@ -38,12 +40,20 @@ $this->params[ 'breadcrumbs' ][] = $this->title;
- Стоматология +
+ lang->body; + ?> +
- Косметология +
+ lang->body; + ?> +
-- libgit2 0.21.4