I don't know what your application flow looks like and what needs to be invoked in which order. You usually want to keep it simple though and only work within one action during a sinlge request.
function methodA() { $this->data = $this->__processData(); } function __processData() { /* magic dust */ return $data; } processData() in this case would only process data, it only does its one thing and shouldn't be accessible as an action to the user. If this doesn't fit your bill and you want your data processing method to be user accessible, but (maybe conditionally) display the resulting data in another view, do this: function methodB() { /* magic dust */ $this->data = $resultOfMagicDust; $this->render('methodA'); } This will invoke the view that is usually invoked automatically for methodA(). If the data you're sending to the view (in $this->data or via $this->set()) has the same structure as what methodA would produce, you can easily re-use it to display your methodB data. Hope that helps... On 5 Sep 2008, at 04:20, Mona wrote: > > Hi Jaime: > > I tried your suggestion but it didn't work, probably because the calls > to these 2 methods are from 2 separate client requests. > > To answer your last question: > > methodA shows a form and handles the form by calling a web services to > retrieve information. methodB is intended to display the information > in a table which allows the user to choose which information to > actually store into the database. I'm new to CakePHP, perhaps there > is a better way to accomplish this? > > thanks, > Mona > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---