Hi Mike Have a look at the Model chapter of the manual
http://manual.cakephp.org/chapter/models Look for the section on the model variable $useTable. You should be able to set the value of userTable before you perform a query. Something like this: $this->[ModelName]->useTable = [theDate]; I haven't tried this, so don't know if it works. Note though, if it does, you would have to set this value at the start of each action (perhaps you could do it in appController). Try searching this group for more info on useTable. It is highly likely that this sort of issue has been discussed previously. Regards, Langdon > I am new to cake and its capabilites, but from what I have seen, it > looks like it could be the perfect solution. I would like to create > one model and one control to handle a bunch of tables. These tables > are created once a day with the date as thier name. I would like to > take the users input for the date and use it to retrieve a table by > name in the database, and then allow the user to view and query the > table for the specified date. > > Does anyone know if this can be done? If so, how would I go about > doing? > > Any input is greatly appreciated. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
