Difference between #2 and #7 of
Adding login form to each page

Changes

Title unchanged

Adding login form to each page

Category unchanged

Tutorials

Yii version unchanged

Tags changed

Authentication

Content changed

[...]
```php
function endRequest($event)
{
$app=Yii::app();
if($app->createUrl($app->user->loginUrl[0])!=$app->request->getUrl())
$app->user->setReturnUrl(
Yii::$app()->request->getUrl());
}
```
[...]
'onEndRequest'=>'endRequest',
...
```

 
3 1
7 followers
Viewed: 50 493 times
Version: 1.1
Category: Tutorials
Written by: pestaa
Last updated by: Yang He
Created on: Aug 23, 2009
Last updated: 12 years ago
Update Article

Revisions

View all history