Blame view

common/modules/blog/views/blog-article/create.php 1006 Bytes
c5a6465c   Alexey Boroda   -Blog half-way done
1
  <?php
52190232   Alexey Boroda   -Blog almost done
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
      
      use common\modules\blog\models\BlogArticle;
      use common\modules\blog\models\BlogArticleLang;
      use common\modules\blog\models\BlogCategory;
      use common\modules\blog\models\BlogTag;
      use yii\helpers\Html;
      use yii\web\View;
      
      /**
       * @var View              $this
       * @var BlogArticle       $model
       * @var BlogArticleLang[] $modelLangs
       * @var BlogCategory[]    $categories
       * @var BlogTag[]         $tags
       */
      
      $this->title = 'Create Blog Article';
      $this->params[ 'breadcrumbs' ][] = [
          'label' => 'Blog Articles',
          'url'   => [ 'index' ],
      ];
      $this->params[ 'breadcrumbs' ][] = $this->title;
c5a6465c   Alexey Boroda   -Blog half-way done
24
25
  ?>
  <div class="blog-article-create">
52190232   Alexey Boroda   -Blog almost done
26
      
c5a6465c   Alexey Boroda   -Blog half-way done
27
      <h1><?= Html::encode($this->title) ?></h1>
52190232   Alexey Boroda   -Blog almost done
28
29
30
31
32
33
34
35
36
37
      
      <?= $this->render(
          '_form',
          [
              'model'      => $model,
              'modelLangs' => $modelLangs,
              'categories' => $categories,
              'tags'       => $tags,
          ]
      ) ?>
c5a6465c   Alexey Boroda   -Blog half-way done
38
39
  
  </div>