Guide
API
Wiki
Forum
Community
Live Chat
Extensions
Resources
Members
Hall of Fame
Badges
More
Learn
Books
Resources
Develop
Download Yii
Report an Issue
Report a Security Issue
Contribute to Yii
Donate
About
What is Yii?
Release Cycle
News
License
Team
Official Logos and Design
Login
🚀
Yii3 is now available!
Yii Framework Wiki
Write
new article
Categories
All
Tips
379
How-tos
516
Tutorials
321
FAQs
72
Others
72
Popular Tags
All
yii2
95
CGridView
69
AJAX
57
Yii
48
tutorial
39
model
31
i18n
30
authentication
28
security
26
database
24
Recent Comments
AftabHussainSharSukkur
on
Convert JSON data to html table for display on page
29 days ago
liam255
on
Aadhar Number Validator
4 months ago
Jesus Carrasco
on
Simple way to implement Dynamic Tabular Inputs
5 months ago
Ricardo Astudillo
on
Filter & Sort by calculated/related fields in GridView Yii 2.0
9 months ago
cowson
on
Displaying, Sorting and Filtering Model Relations on a GridView
9 months ago
Difference between #
10
and #
11
of
Module based login
Changes
Title
unchanged
Module based login
Category
unchanged
Tutorials
Yii version
unchanged
Tags
unchanged
authentication, module
Content
changed
[...]
```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
[...]
13
0
18
followers
Viewed:
107 504 times
Version:
1.1
Category:
Tutorials
Tags:
authentication
,
module
Written by:
suriyansuresh
Last updated by:
suriyansuresh
Created on:
Oct 23, 2010
Last updated:
15 years ago
Update Article
Revert to #10
|
Revert to #11
Revisions
View all history
15 years ago
by
suriyansuresh
added some text
15 years ago
by
suriyansuresh
another login update
15 years ago
by
qiang
changed tags
15 years ago
by
auxbuss
tidied and tightened up the English for...