On May 31, 10:50 pm, "John David Anderson (_psychic_)"
<[EMAIL PROTECTED]> wrote:
> On May 31, 2007, at 2:47 PM, Paolo Gabrielli wrote:
>
>
>
> > Seems to me, after several hours, that I've solved adding
>
> > if ($this->RequestHandler->isAjax())
> > $this->render('admin_index', 'ajax');
>
> Wont $this->RequestHandler->setAjax($this) do that?
Including the RequestHandler component with no other code does that.
The only time the above would make a difference (in principle) is if
in the app code $this->layout = 'not ajax' is called - since the
requestHandler sets the layout to be used to Ajax, it doesn't render
a view with no layout.
hth,
AD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---