fixing some tests
This commit is contained in:
10
tests/_app/views/layouts/main.php
Normal file
10
tests/_app/views/layouts/main.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
if (Yii::$app->user->getIsGuest()) {
|
||||
echo \yii\helpers\Html::a('Login', ['/user/security/login']);
|
||||
echo \yii\helpers\Html::a('Registration', ['/user/registration/register']);
|
||||
} else {
|
||||
echo \yii\helpers\Html::a('Logout', ['/user/security/logout']);
|
||||
}
|
||||
|
||||
echo $content;
|
||||
Reference in New Issue
Block a user