In 1.3 the command changed from cake schema run create DbAcl to cake schema create DbAcl

wappy on 10/27/10

The command to setup ACL did not work for me.
I used ‘./cake schema create DbAcl’ from the cake/console directory and it worked fine.

rob on 11/18/10

Also, the function parentNode() in User Model is incorrect as of cakephp 1.3+. The above code will cause parent_id value in aros change to null when trying to modify User record. i.e. change password.

Please refer to

for correct implementation of parentNode() in User Model.

kenfai on 11/20/10

I wish all a happy and prosperous new year 2011

Cyberbob on 12/30/10

“cake schema run create” DbAcl doesn’t work, but without “run” it works.

Jon Lyles on 1/5/11

@Jon Lyles -> Use: cake schema create

Tonyweb on 3/31/11

Thanks for the explanation. Really helpful..
I got some issues. It is not displaying session messages. I have following in my app_controller:
<pre> $this->Auth->authorize = 'actions'; $this->Auth->authError = "Sorry, you are lacking access."; $this->Auth->loginError = "Sorry, invalid login credentials."; $this->Auth->loginAction = array('controller' => 'users', 'action' => 'login'); $this->Auth->logoutRedirect = array('controller' => 'users', 'action' => 'login'); $this->Auth->loginRedirect = array('controller' => 'users', 'action' => 'dashboard'); $this->Auth->userModel = 'User'; </pre>
Also, in my layout I have:
echo $this->Session->flash('auth');

Any idea?

Thanks in advance..

Moiz on 9/22/11

What version of Cake is this tutorial for?

Steven Wright on 11/30/11


Nice post.. I have created separate plugins for administrators and managers. I didn’t use admin routings like admin_ or manager_. How to give permission in that case ? I don’t want to give user specific permission only I need to give group level permission..

Binoy on 12/29/11

What’s up, I check your blogs daily. Your writing style is witty, keep it up!

career at home on 2/5/13


don’t forget to include ‘Session’ in

class AppController extends Controller { var $components = array(‘Auth’, ‘Acl’,‘Session’);


peter on 12/11/13

don’t forget to include ‘Session’ in

class AppController extends Controller { var $components = array('Auth', 'Acl','Session');

Peter on 12/11/13