Comparing
#10 with
#11
Content
[...]
```php
public function actionLogin() {
Yii::app()->request->redirect(Yii::app()->createUrl(Yii::app()->user->returnUrl));
}
```
(or)
**Update 2
(best method)**
----------
**Redirect to respective module login, if user not logged in to a particular model**
add following code to customer module CustomerModule.php[...]