Blame view

frontend/views/article/view.php 548 Bytes
4ca21c3e   Alexey Boroda   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  <?php
  
  /**
   * @var Articles $model
   * @var View $this
   */
  use common\models\Articles;
  use yii\web\View;
  use yii\helpers\Url;
  
  $this->title = $model->title;
  $this->params[ 'breadcrumbs' ][] = [
      'label' => "События",
      'url' => Url::to(['article/index']),
  ];
  $this->params[ 'breadcrumbs' ][] = $this->title;
  ?>
  
  <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>