On Tue, Jul 8, 2008 at 9:53 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi. > > I'm trying to fetch some data from the DB from a statistics controller > that doesn't have any particular model associated with it. I just need > to collect some info from the DB with some custom queries.
Again, you missed my point. You are not limited to models that are associated with a specific controller. There's no reason why you could not do this: 1) create your model 2) tell your controller to use that model via either $uses or app::import 3) $results = $this->Model->query(...) I'm hoping I am not misunderstanding the problem. -- Chris Hartjes Internet Loudmouth Motto for 2008: "Moving from herding elephants to handling snakes..." @TheKeyBoard: http://www.littlehart.net/atthekeyboard --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
