Re: Pass data between models during same request

2012-05-07 Thread lowpass
Are these models associated with each other? If so, you can do everything from within the Invoice model. That is, if Invoice is associated with ExternalHeader, just do $this-ExternalHeader-save(...) That way, there's no need for the controller to load the other models. On Wed, May 2, 2012 at

Re: Pass data between models during same request

2012-05-07 Thread Michael Stelly
Thanks for the tip. I'll check it when I get back to the office. Sincerely, Michael Stelly mobile: +1.918.978.2000 skype: mjstelly LinkedIn http://www.linkedin.com/in/mstelly On Mon, May 7, 2012 at 6:11 PM, lowpass zijn.digi...@gmail.com wrote: Are these models associated with each other? If

Pass data between models during same request

2012-05-02 Thread esdev
I'm new to CakePHP and still unfamiliar with the API. So, please bear with me here. I have 5 models - 2 for an external data store, 2 for a local data store, and 1 for the controller. I have one controller that's directing all the activity. In the controller, I fetch the remote data and pass