Commit c9ec322b5f5ec0d418d7d76f1d9aceb9f8d1bc87

Authored by Anastasia
1 parent 5a63b975

- package index

- delete about
frontend/controllers/PackageController.php
... ... @@ -9,6 +9,7 @@
9 9 namespace frontend\controllers;
10 10  
11 11 use common\models\Package;
  12 + use yii\data\ActiveDataProvider;
12 13 use yii\web\Controller;
13 14  
14 15 class PackageController extends Controller
... ... @@ -20,4 +21,13 @@
20 21 'package' => $package
21 22 ]);
22 23 }
  24 +
  25 + public function actionIndex(){
  26 + $dataProvider = new ActiveDataProvider([
  27 + 'query' => Package::find()->with(['language.alias'])->where(['status' => true])->orderBy('sort')
  28 + ]);
  29 + return $this->render('index', [
  30 + 'dataProvider' => $dataProvider
  31 + ]);
  32 + }
23 33 }
24 34 \ No newline at end of file
... ...
frontend/views/layouts/main.php
... ... @@ -18,7 +18,6 @@
18 18 use artbox\core\seo\widgets\SeoBreadcrumbs;
19 19 use common\models\Service;
20 20 use common\models\Settings;
21   - use common\models\Visit;
22 21 use frontend\assets\AppAsset;
23 22 use frontend\assets\SliderAsset;
24 23 use frontend\widgets\ArtboxModalWidget;
... ... @@ -108,7 +107,6 @@
108 107 </div>
109 108 <div class="col-sm-9 col-md-10 col-lg-10 header-col">
110 109 <ul class="hidden-xs hidden-sm">
111   - <li><a href="<?= Url::to([ 'site/about' ]) ?>"><?= \Yii::t('app', 'О нас') ?></a></li>
112 110 <li><a href="<?= Url::to([ 'site/contact' ]) ?>"><?= \Yii::t('app', 'Contacts') ?></a></li>
113 111 </ul>
114 112  
... ... @@ -231,7 +229,6 @@
231 229 </div>
232 230 <div class="menu-second-mob">
233 231 <ul class="footer-menu">
234   - <li><a href="<?= Url::to([ 'site/about' ]) ?>"><?= \Yii::t('app', 'О нас') ?></a></li>
235 232 <li><a href="<?= Url::to([ 'site/contacts' ]) ?>"><?= \Yii::t('app', 'Контакты') ?></a></li>
236 233 <li><a href="#" class="new"><span><?= \Yii::t('app', 'Второе мнение') ?></span></a></li>
237 234 <li><a href="#"><?= \Yii::t('app', 'Вопрос-ответ') ?></a></li>
... ... @@ -314,7 +311,6 @@
314 311  
315 312 <div class="col-xs-9 col-sm-2">
316 313 <ul class="footer-menu">
317   - <li><a href="<?=Url::to(['site/about'])?>">О нас</a></li>
318 314 <li><a href="<?=Url::to(['site/about'])?>">Контакты</a></li>
319 315 <li><a href="#" class="new"><span>Второе мнение</span></a></li>
320 316 <li><a href="<?=Url::to(['site/questions'])?>">Вопрос-ответ</a></li>
... ...
frontend/views/package/index.php 0 → 100644
  1 +<?php
  2 + /**
  3 + * @var \yii\data\ActiveDataProvider $dataProvider
  4 + * @var \yii\web\View $this
  5 + */
  6 +
  7 + $this->params['breadcrumbs'][] = \Yii::t('app', 'Пакетные предложения');
  8 + ?>
0 9 \ No newline at end of file
... ...