class AppController extends Controller {
public $components = array(
'Session',
'Auth'=>array(
'loginRedirect'=>array('controller'=>'users', 'action'=>'view'),
'logoutRedirect'=>array('controller'=>'users', 'action'=>'login'),
'authError'=>"You can't access that page",
'authorize'=>array('Controller')
)
);
当我使用索引而不是视图时它可以工作,但是当我使用视图时出现错误:
invalid user
Error: The requested address '/skill_application/users/view' was not found on this server.
当用户登录时,我希望它重定向到用户视图。如何将 id 赋予视图?