You need a Model for each o the tables not a controller, You can do
one controller and do var $uses = array('model1','model2','model3')
and so on however if there are a lot of table relations you might want
to check out 
http://book.cakephp.org/view/78/Associations-Linking-Models-Together

On Nov 11, 8:41 am, Sean <[EMAIL PROTECTED]> wrote:
> I'm a newbie to CakePHP.
>
> I'm building a site that lists a massive amount of places; possibly in
> the hundreds of thousands. These places will be user-registered, so
> the mysql database is split up into tables, whose names contain an
> variable zipcode and a suffix indicating if it is information often
> accessed or only ocassionally accessed (when the place's profile is
> viewed).
>
> As I understand, I need a controller for each of these tables, named
> after the table. There is the potential of having two tables for every
> zipcode, so I don't want to have that many controllers. All tables
> have the same structure however, and I will constantly be needing to
> look through many of them. How can I just make two controllers in
> CakePHP that apply to the two different types (often and rarely
> accessed) of all these tables, rather than have an individual one for
> every single table?
>
> If my explanation is poor, I'd be happy to try and re-write it. Thanks
> for the help, in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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