http://book.cakephp.org/view/648/Setting-up-permissions
When I run my code though I get this error:
Fatal error: Call to undefined method AuthComponent::authorize() in C:
\Development\Projects\LinkBuilder\cake\trunk\app\app_controller.php on
line 8
The code is:
<pre><?php
class AppController extends Controller {
var $components = array("Auth","Acl");
function beforeFilter() {
$this->Auth->authorize("actions");
$this->Auth->loginAction = array(
'admin' => false,
'controller' => 'people',
'action' => 'login'
);
$this->Auth->logoutRedirect = array(
'controller' => 'users',
'action' => 'login'
);
$this->Auth->loginRedirect = array(
'controller' => 'posts',
'action' => 'add'
);
}
}
?></pre>
I've got CakePHP version 1.2.4.8284
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment