You should push your report code to your models. Your Domains
controller will have good visibility to both the Domains model as well
as the Locations model.


On Aug 15, 3:03 pm, Michael Gaiser <[email protected]> wrote:
> So I have 2 controllers. Domain, & Location. Domains have several
> locations. The Location controller has a function called "report"
> which I want to be able to call from my domain controller to generate
> the reports for each of its locations. I was thinking that I could
> just do it like this:
> $report = $this->Domain->Locations->report($id)
>
> But that doesn't seem to work. Is there a way to do this or is my
> thinking backwards on this one? Thanks.
>
> ~Michael

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to