Hi there,

I've been investigating the skinny-controller, fat-model concept
within the CakePHP framework and wondering what the general thoughts
are to using ACL components inside a model.

In my particular setup, when a record is created (let's call it Book)
the associated chapters that reside in another table are also created.
>From this, I would have put the Chapter creation in the afterSave()
callback on the Book model. But when creating the Chapter records, I
also need to assign the permissions to the chapters. Putting the
permission code ($this->Acl->allow(...)) into the controller seems
like separating code that's too closely linked together. I've had
various ideas, but nothing seems to feel right!

Any feedback would be appreciated.


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to