Changes
Title
unchanged
Adding login form to each page
Category
unchanged
Tutorials
Yii version
unchanged
Tags
changed
Authentication
Content
changed
[...]
```php
$app=Yii::app();
if($app->createUrl($app->user->loginUrl[0])!=$app->request->getUrl())
$app->user->setReturnUrl(Yii::$app
()->request->getUrl());
```[...]
$app=Yii::app();
if($app->createUrl($app->user->loginUrl[0])!=$app->request->getUrl())
$app->user->setReturnUrl(Yii::$app
()->request->getUrl());
}
```[...]
'onEndRequest'=>'endRequest',
...
```