2012-07-19 78 views

回答

1

您還需要添加在public $components

public $components = array(
    'Auth' => array(
     'authorize' => array('Controller') // Added this line 
    ) 
); 

而且isAuthorized()在用戶登錄後才能調用。