loginUrl参数该如何设置?

在config/main.php文件中作如下设置:




...

'user'=>array(

  'class'=>'application.components.WebUser',

   // enable cookie-based authentication

  'allowAutoLogin'=>true,

  // force 401 HTTP error if authentication needed

  'loginUrl'=>'user/login',

),

...



当访问post/admin链接时,因需要登录后才能访问,按照配置应该跳转到user/login,可实际跳转到了post/user/login。

是我设置的问题还是程序的BUG?请指教!




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



不错不错,问题解决,谢谢啦!