ajax routes who looked like
http://www.mydomain.com/ajax/controller1/action1
http://www.mydomain.com/ajax/controller2/action2
The bakery redirect method seems to support this route.
<?php
function redirect($url, $status = null){
$ajax = ($this->RequestHandler->isAjax())
? ($url{0} != '/') ? '/ajax/' : '/ajax' : null;
parent::redirect($ajax.$url, $status);
}
?>
Can anybody help me about it ?
On Jun 23, 3:18 pm, brian <bally.z...@gmail.com> wrote:
> On Tue, Jun 23, 2009 at 6:39 AM, theasta<thea...@gmail.com> wrote:
>
> > Hi everybody,
>
> > I'm building a website withajax.
> > There is a main layout that I don't want to reload for the whole
> > website and a main div that will contain the content to be updated for
> > each different page. I'm trying to get from one page to another using
> > $ajax->link but my url remains the same. It's really annoying.
> > I was wondering if it was possible when using $ajax->link to change
> > the url dynamically to get such things as
>
> By, "url remains the same", are you referring to the browser's
> location bar?AJAXrequests won't change that.
--~--~---------~--~----~------------~-------~--~----~
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:
Post a Comment