Posts Categorized: CakePHP

CakePHP ACL with Auth

Posted by & filed under CakePHP.

Auth->allowedActions vs Auth->allow() Use $this->Acl->allow() – documented at http://book.cakephp.org/view/1550/Setting-up-permissions – to set up the ACROs access. You can do this on a controller basis, and also on a controller/action basis. $this->Auth->allowedActions is an array of allowed actions. Auth->allow() alters the $this->Auth->allowedActions array. If you want to be absolutely sure, in any controller, that only certain… Read more »

CakePHP Pagination

Posted by & filed under CakePHP.

When you add passed parameters for a custom ‘find’ for the pagination routine you need to propagate the params for 2nd and subsequent pages. This is because on 2nd and subsequent pages the action performing the pagination is not receiving the passed params and has ‘lost’ them. You can propagate these params through the Session… Read more »