From c61d43e883ec75f8afaf8cc62033eedf8c809c92 Mon Sep 17 00:00:00 2001 From: slavcodev Date: Tue, 12 Nov 2013 06:24:07 +0200 Subject: [PATCH] Fix apps phpDoc and short tags --- views/layouts/main.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/views/layouts/main.php b/views/layouts/main.php index 278aa1d..3bc4d37 100644 --- a/views/layouts/main.php +++ b/views/layouts/main.php @@ -3,12 +3,13 @@ use yii\helpers\Html; use yii\bootstrap\Nav; use yii\bootstrap\NavBar; use yii\widgets\Breadcrumbs; +use app\config\AppAsset; /** - * @var $this \yii\web\View - * @var $content string + * @var \yii\web\View $this + * @var string $content */ -app\config\AppAsset::register($this); +AppAsset::register($this); ?> beginPage(); ?> @@ -36,7 +37,7 @@ app\config\AppAsset::register($this); ['label' => 'Contact', 'url' => ['/site/contact']], Yii::$app->user->isGuest ? ['label' => 'Login', 'url' => ['/site/login']] : - ['label' => 'Logout (' . Yii::$app->user->identity->username .')' , + ['label' => 'Logout (' . Yii::$app->user->identity->username . ')' , 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']], ], @@ -45,9 +46,9 @@ app\config\AppAsset::register($this); ?>
- isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [], - ]); ?> + ]) ?>