Afternoon all,

I have just been playing with the CakePHP ACL stuff. I've read as many
tutorials as I can, and gone through the manual and some of the code.

Thank you Brian at Realm3, Geoff at LemonCake, and the usual crew for
all the is CakePHP.

I've knocked up a suggested parentNode() function for the app_model
that (hopefully) should suffice for all models with the ACL behaviour.
The purpose of the method is to either assign the new ACO to it's
model parent (if it is a tree) or if it isn't assign it to a generic
Model ACO.

e.g. Creating a new post will create a new ACO for that Post with it's
id as the ACO foreign key. Since the Post is not a Tree the method
will assign it the ACO with Model Post and foreign key 'null'. If none
exists one will be created.

If anyone can notice any glaring mistakes, suggestions or just general
critique that would be much appreciated. I hope it is useful to
someone else, but be warned I'm not sure if it is all good just yet.

http://bin.cakephp.org/view/749490165

Cheers,
Mike

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to