Blame view

backend/views/seo-dynamic/create.php 1.07 KB
d8c1a2e0   Yarik   Big commit artbox
1
  <?php

d55d2fe0   Yarik   Multilanguage
2
      

21aedefe   Yarik   Another one admin...
3
      use common\models\SeoCategory;

d55d2fe0   Yarik   Multilanguage
4
5
6
7
8
9
10
11
12
13
      use common\models\SeoDynamic;

      use common\models\SeoDynamicLang;

      use yii\helpers\Html;

      use yii\helpers\Url;

      use yii\web\View;

      

      /**

       * @var View             $this

       * @var SeoDynamic       $model

       * @var SeoDynamicLang[] $model_langs

21aedefe   Yarik   Another one admin...
14
       * @var SeoCategory      $seo_category

d55d2fe0   Yarik   Multilanguage
15
16
17
18
       */

      

      $this->title = Yii::t('app', 'Create Seo Dynamic');

      $this->params[ 'breadcrumbs' ][] = [

21aedefe   Yarik   Another one admin...
19
20
21
22
23
24
          'label' => Yii::t('app', 'Seo Categories'),

          'url'   => [ '/seo-category/index' ],

      ];

      $this->params[ 'breadcrumbs' ][] = [

          'label' => $seo_category->lang->name,

          'url'   => [

d55d2fe0   Yarik   Multilanguage
25
              'index',

21aedefe   Yarik   Another one admin...
26
27
              'seo_category_id' => $seo_category->seo_category_id,

          ],

d55d2fe0   Yarik   Multilanguage
28
29
      ];

      $this->params[ 'breadcrumbs' ][] = $this->title;

d8c1a2e0   Yarik   Big commit artbox
30
31
  ?>

  <div class="seo-dynamic-create">

d55d2fe0   Yarik   Multilanguage
32
      

d8c1a2e0   Yarik   Big commit artbox
33
      <h1><?= Html::encode($this->title) ?></h1>

d55d2fe0   Yarik   Multilanguage
34
      

d8c1a2e0   Yarik   Big commit artbox
35
      <?= $this->render('_form', [

d55d2fe0   Yarik   Multilanguage
36
37
          'model'       => $model,

          'model_langs' => $model_langs,

d8c1a2e0   Yarik   Big commit artbox
38
39
40
      ]) ?>

  

  </div>