Saturday, May 2, 2009

Question about render()

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?

--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: