Never mind, I figured it out.
On Jul 1, 3:03 pm, Grant Cox <[EMAIL PROTECTED]> wrote:
> You want to use $this->redirect("/users/startpage"), not requestAction.
If I use $this->redirect(), the whole view will be rendered.
The following function (placed in app_controller.php) would work
*nearly* as expected:
function redirect($url, $status = null, $exit = false) {
if ($this->RequestHandler->isAjax()) {
echo $this->requestAction($url, array('return'));
exit;
} else {
parent::redirect($url, $status, $exit);
}
}
However, the action is rendered using no layout at all. I wonder if
it's possible to render it using 'ajax' layout or not.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---