On Sat, May 2, 2009 at 6:42 PM, Rick <[email protected]> wrote: > > In my controller I have an action 'add' and an action 'search'. In > the search action I do some things then want to render the 'add' view > so as the last line in the search I add $this->render('add'); > > This does indeed show the add page but then it renders the search > page. So I end up with the add page and search page combined into one > page. (I hope this is clear). > > Obviously I'm doing something wrong but what? Do I need to "turn > off" the automatic rendering of the search page somehow?
Yes. $this->autoRender = false; --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
