A
A
Anton2016-09-15 00:36:15
Yii
Anton, 2016-09-15 00:36:15

Question on AccessControl?

Hello. If you allow access to the action only for the user who is logged in, so if the user who is not logged in wants to go to this action, he will be redirected to the login page, the question is where to specify where he will be redirected in this case?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Inter Carpenter, 2016-09-15
Reytarovsky @Antonchik

'user'=>array(
    'loginUrl'=>'/user/login',
),

If Yii 1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question