Fix apps phpDoc and short tags
This commit is contained in:
parent
5ada6348ae
commit
c61d43e883
@ -3,12 +3,13 @@ use yii\helpers\Html;
|
|||||||
use yii\bootstrap\Nav;
|
use yii\bootstrap\Nav;
|
||||||
use yii\bootstrap\NavBar;
|
use yii\bootstrap\NavBar;
|
||||||
use yii\widgets\Breadcrumbs;
|
use yii\widgets\Breadcrumbs;
|
||||||
|
use app\config\AppAsset;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var $this \yii\web\View
|
* @var \yii\web\View $this
|
||||||
* @var $content string
|
* @var string $content
|
||||||
*/
|
*/
|
||||||
app\config\AppAsset::register($this);
|
AppAsset::register($this);
|
||||||
?>
|
?>
|
||||||
<?php $this->beginPage(); ?>
|
<?php $this->beginPage(); ?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
@ -36,7 +37,7 @@ app\config\AppAsset::register($this);
|
|||||||
['label' => 'Contact', 'url' => ['/site/contact']],
|
['label' => 'Contact', 'url' => ['/site/contact']],
|
||||||
Yii::$app->user->isGuest ?
|
Yii::$app->user->isGuest ?
|
||||||
['label' => 'Login', 'url' => ['/site/login']] :
|
['label' => 'Login', 'url' => ['/site/login']] :
|
||||||
['label' => 'Logout (' . Yii::$app->user->identity->username .')' ,
|
['label' => 'Logout (' . Yii::$app->user->identity->username . ')' ,
|
||||||
'url' => ['/site/logout'],
|
'url' => ['/site/logout'],
|
||||||
'linkOptions' => ['data-method' => 'post']],
|
'linkOptions' => ['data-method' => 'post']],
|
||||||
],
|
],
|
||||||
@ -45,9 +46,9 @@ app\config\AppAsset::register($this);
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<?=Breadcrumbs::widget([
|
<?= Breadcrumbs::widget([
|
||||||
'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
|
'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
|
||||||
]); ?>
|
]) ?>
|
||||||
<?= $content ?>
|
<?= $content ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user