Wednesday, July 1, 2009

acl tutorial, problem with command line

I'm following the tutorial on ACLs and I'm stuck here:
http://book.cakephp.org/view/648/Setting-up-permissions

I'm on windows :-( and when I issue this command:
cake acl grant $aroAlias $acoAlias [create|read|update|delete|'*']

I get this error message in return: "read" is not recognized as a
command...

Can you tell me why?

On the same topic, when the tutorial says:

To allow with the AclComponent do the following:

$this->Acl->allow($aroAlias, $acoAlias);

I understand that the file is: cake/libs/controller/components/acl.php

Where exatly this line must be put? how does it differs from the
command line version?

Thank you very much, the more I dwell into cake the more I fall in
love with it..

David
--~--~---------~--~----~------------~-------~--~----~
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: