You can create a method in each model and place the find details
there. Then, from the controllers:

$foo = $this->YourModel->yourMethod(...)

"Fat models, thin controllers", as the saying goes.

On Tue, May 5, 2009 at 7:42 PM, Nancy <nancy.milli...@gmail.com> wrote:
>
> I have a bunch of tables that are highly inter-related and I have them
> all being displayed, like an initial index view, from one controller.
> They're getting updated and the index of each table is refreshed via
> that table's controller (Ajax).   The bad part about this is that I
> have to keep the queries updated in two places, my main overview
> controller and then in each tables controller.  Is there a way to
> share a query code between controllers?
>
> Thanks!
>
> Nancy
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to