Re: how would YOU do this (admin groups)
Yes, I would add a 'school_id' field to each of the models. Then, as
above, you can filter to only the Rooms, Programs, and Classes that
belong to a particular School (which is your desired result).
On May 6, 11:25 am, rockbust <rockb...@optonline.net> wrote:
> Do you think I should associate each model with "School" and insert the
> "school_id"? Thereby making it easier to loop through any of these distant
> associated models.
>
> Example: right now I have associations as follows,
> school>room>program>class> should I also set school has many class? then
> when a admin goes to admin/class/index we can alter queryData easier based
> on the school_id.
>
> Or will this cause a huge mess with so many models associated with each
> other? Please help..
>
> --
> View this message in context:http://cakephp.1045679.n5.nabble.com/how-would-YOU-do-this-admin-grou...
> Sent from the CakePHP mailing list archive at Nabble.com.
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home