protected/modules/store/views/categoryBackend/view.php
<?php
$this->breadcrumbs = [
Yii::t('StoreModule.store', 'Categories') => ['index'],
$model->name,
];
$this->pageTitle = Yii::t('StoreModule.store', 'Categories - view');
$this->menu = [
['icon' => 'fa fa-fw fa-list-alt', 'label' => Yii::t('StoreModule.store', 'Manage categories'), 'url' => ['/store/categoryBackend/index']],
['icon' => 'fa fa-fw fa-plus-square', 'label' => Yii::t('StoreModule.store', 'Create category'), 'url' => ['/store/categoryBackend/create']],
['label' => Yii::t('StoreModule.store', 'Category') . ' «' . mb_substr($model->name, 0, 32) . '»'],
[
'icon' => 'fa fa-fw fa-pencil',
'label' => Yii::t('StoreModule.store', 'Update category'),
'url' => [
'/store/categoryBackend/update',
'id' => $model->id
]
],
[
'icon' => 'fa fa-fw fa-eye',
'label' => Yii::t('StoreModule.store', 'View category'),
'url' => [
'/store/categoryBackend/view',
'id' => $model->id
]
],
[
'icon' => 'fa fa-fw fa-trash-o',
'label' => Yii::t('StoreModule.store', 'Delete category'),
'url' => '#',
'linkOptions' => [
'submit' => ['/store/categoryBackend/delete', 'id' => $model->id],
'params' => [Yii::app()->getRequest()->csrfTokenName => Yii::app()->getRequest()->csrfToken],
'confirm' => Yii::t('StoreModule.store', 'Do you really want to remove category?'),
'csrf' => true,
]
],
];
?>
<div class="page-header">
<h1>
<?= Yii::t('StoreModule.store', 'Viewing category'); ?><br/>
<small>«<?= $model->name; ?>»</small>
</h1>
</div>
<?php $this->widget(
'bootstrap.widgets.TbDetailView',
[
'data' => $model,
'attributes' => [
'id',
[
'name' => 'parent_id',
'value' => $model->getParentName(),
],
'name',
'slug',
[
'name' => 'image',
'type' => 'raw',
'value' => $model->image ? CHtml::image($model->getImageUrl(200, 200), $model->name) : '---',
],
[
'name' => 'description',
'type' => 'raw'
],
[
'name' => 'short_description',
'type' => 'raw'
],
[
'name' => 'status',
'value' => $model->getStatus(),
],
],
]
); ?>