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

Revision #3 has been created by pestaa on Aug 23, 2009, 9:11:54 AM with the memo:

$app
« previous (#2) next (#4) »

Changes

Title unchanged

Adding login form to each page

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

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());
}
```

Attaching could be done in your config:
[...]
3 1
7 followers
Viewed: 38 773 times
Version: 1.1
Category: Tutorials
Written by: pestaa
Last updated by: Yang He
Created on: Aug 23, 2009
Last updated: 5 years ago
Update Article

Revisions

View all history