Wednesday, August 31, 2011

Multiple controllers linked to a single model

I have a table called 'objects' and each record has an item_type.
for example :
row 1:
id = 1
item_type = event

row 2:
id =2
item_type = news

row 3:
id =3
item_type = booking

I have a model for the table but is it possible to have multiple
controllers accessing this model,
I want to have an events controller that will handle all the events,
news controller that will handle all the news... and so on

is this possible for cakePhp?

--
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

No comments: