index.php
612 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
use yii\helpers\Url;
use yii\widgets\Breadcrumbs;
//use app\models\News;
use yii\widgets\LinkPager;
use yii\widgets\ListView;
$this->title = 'Акции';
$this->params['seo']['title'] = $this->title;
$this->params['seo']['h1'] = $this->title;
?>
<div class="wrapper white item_container">
<div class="container">
<h1>Акции</h1>
<?php
foreach($dataProvider->models as $model){
if($model->isActive()){
echo $this->render('_objects',['model' => $model]);
}
}
?>
<div class="both"></div>
</div>
</div>