I am noob Yii developer and I have AdminController with access rules. So this controller is enabled for only specific users, else it redirects to "example.com/site/login" but I need that it redirected to "example.com/user/login" . So can you tell me how to do this?
You can change the loginUrl property of the user component, so make the following change in your main.php config file:
array(
// ......
'components'=>array(
'user'=>array(
'loginUrl'=>array('user/login'),
),
),
)
Read this part in the guide.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With