Blame view

frontend/views/article/view.php 722 Bytes
4ca21c3e   Alexey Boroda   first commit
1
  <?php
f2acc393   Alexey Boroda   -Seo widget integ...
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
      
      /**
       * @var Articles $model
       * @var View     $this
       */
      use common\models\Articles;
      use yii\web\View;
      use yii\helpers\Url;
      use common\widgets\Seo;
      
      $this->params[ 'seo' ][ Seo::TITLE ] = $model->title;
      $this->params[ 'seo' ][ Seo::DESCRIPTION ] = '';
      $this->params[ 'breadcrumbs' ][] = [
          'label' => "События",
          'url'   => Url::to([ 'article/index' ]),
      ];
      $this->params[ 'breadcrumbs' ][] = $model->title;
4ca21c3e   Alexey Boroda   first commit
19
20
21
22
23
24
25
  ?>
  
  <div class="col-md-12 blog_post1">
      <div class="date"><?php echo date('d.m.Y', $model->date); ?></div>
      <div class="title"><?php echo $model->title; ?></div>
      <p class="center"><?php echo $model->body; ?></p>
  </div>