Friday, December 31, 2010

Re: How to use Grant in Shell ?

> I don't know. Do you mean the table's data ?
>
> I'm following the tutorial here
>
> http://book.cakephp.org/view/1550/Setting-up-permissions
>
> it says to allow permission for aro and aco tables..
>
> how to enable the permission ?

Here's an example 'installation' controller: http://pastie.org/1419477

it will do 3 things in the order required:

1. populate the aco table with a record for every public controller method.
2. create the user groups
3. set the permissions for the groups

1 you can leave as it is
2 you might need to change, depends how complex your app is (I would
suggest starting simple until you grasp the fundamentals)
3 you'll definitely need to change to match your requirements.

hth

Jon
ps: don't forget to disable the actions when you deploy to live!

--
jon bennett - www.jben.net - blog.jben.net

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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: