Commit cfb19900d82504cf9dc6e4f79253dc7030517885

Authored by Timur Kastemirov
1 parent cc7276ea

breadcrumbs in blog/view

Showing 1 changed file with 9 additions and 0 deletions   Show diff stats
frontend/views/object/view.php
1 1 <?php
2 2 use common\models\Objectkb;
3 3 use yii\helpers\Url;
  4 + use artbox\core\components\SeoComponent;
  5 +
4 6 /**
5 7 * User: timur
6 8 * Date: 25.01.18
7 9 * Time: 23:46
8 10 *
9 11 * @var Objectkb $object
  12 + * @var SeoComponent $seo
10 13 */
11 14  
  15 + $seo = Yii::$app->get('seo');
  16 +
  17 + $this->params['h1'] = $seo->h1;
  18 +
  19 + $this->params['breadcrumbs'][] = \Yii::t('app', 'menu-objects');
  20 + $this->params['breadcrumbs'][] = $this->params['h1'];
12 21  
13 22 ?>
14 23  
... ...