Hi.
Don't know if it's related, but i think RC1 broke RequestHandler
initialisation. In fact, https://trac.cakephp.org/ticket/4000 seems to
have to be reopened : requesthandler->initialize() isn't called
before requesthandler->startup(), so it always takes the standard
view.ctp (and not the views/[controller]/[request_type]/view.ctp as it
should).
In my case, i just add that in my app_controller.php :
function beforeFilter {
$this->RequestHandler->initialize($this);
$this->RequestHandler->startup($this);
}
And it works. Can anyone confirm that there's a regression ? Wanna be
sure before reactivating the ticket.
Thanks,
Sebastien
On Jun 9, 11:12 am, Crazy <[EMAIL PROTECTED]> wrote:
> Hi,
>
> A while ago I took on the challenge to get some ajax stuff to work
> with cake.
> I was able to get it working the way I wanted, but now, by updating to
> the latest version it doesn't work anymore.
>
> Did something releated to ajax change?
> The problem I get is that the default layout is rendered, the the
> entire page is displayed in my div
>
> This is what I have in my controller:
>
> var $components = array('RequestHandler');
> var $helpers = array('Html', 'Javascript', 'Ajax');
>
> function output(){
> $this->set("result", $this->Shoutbox->findAll(null, null, "date
> DESC", 25, null, false));
> $this->render("output", "ajax");
> }
>
> When searching the net I also tried to add this:
> function beforeFilter(){
> if($this->RequestHandler->isAjax()){
> Configure::write('debug', 0);// and forget debug messages
> $this->layout = ''; //or try with $this->layout = '';
> }
>
> }
>
> When trying to look for the cause I found that when I did "svn update"
> it stopped working.
>
> Hope someone knows the awnser
>
> Thanks,
> Crazy
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---