One doesn't "redirect" from an element. I think what you mean is that you have a form submit button and that clicking it results in some new layout elements being added asynchronously to the search div. Do you have some javascript code attached to the form to get the results using XHR / AJAX? If so, you need to modify the search method in the controller to keep it from rendering a layout:
$this->layout = false; Also, have a look at the RequestHandler component. On Fri, Jun 6, 2008 at 2:33 AM, Shahzad <[EMAIL PROTECTED]> wrote: > > I have an element search.ctp, it has a simple text box and a search > button. When ever I press the search button and try to redirect (from > my controller action), It displays the redirected page with in the > element. What am I doing wrong? How do I redirect the whole page? > > Thank you > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
