Commit fa78df08 authored by Tobias Munk's avatar Tobias Munk

updated breadcrumbs

parent 7ce9a710
......@@ -16,7 +16,7 @@ class Module extends \yii\base\Module
public function beforeAction($action)
{
parent::beforeAction($action);
\Yii::$app->controller->view->params['breadcrumbs'][] = ['label' => 'Widget', 'url' => ['/widgets']];
\Yii::$app->controller->view->params['breadcrumbs'][] = ['label' => 'Widget module', 'url' => ['/widgets']];
return true;
}
......
......@@ -3,7 +3,7 @@
* /app/src/../runtime/giiant/d4b4964a63cc95065fa0ae19074007ee.
*/
use dmstr\bootstrap\Tabs;
use dmstr\helpers\Html;
use yii\helpers\Html;
use yii\widgets\DetailView;
/*
......
<?php
namespace _;
/**
* /app/src/../runtime/giiant/d4b4964a63cc95065fa0ae19074007ee.
*/
use dmstr\bootstrap\Tabs;
use dmstr\helpers\Html;
use yii\helpers\Html;
use yii\widgets\DetailView;
/*
......@@ -16,7 +19,7 @@ $copyParams = $model->attributes;
$this->title = $model->getAliasModel().$model->id;
$this->params['breadcrumbs'][] = ['label' => $model->getAliasModel(true), 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => (string) $model->id, 'url' => ['view', 'id' => $model->id]];
$this->params['breadcrumbs'][] = Yii::t('app', 'View');
$this->params['breadcrumbs'][] = \Yii::t('app', 'View');
?>
<div class="giiant-crud widget-view">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment