Check to see if the request is ajax or not.

http://api20.cakephp.org/class/request-handler-component#method-RequestHandlerComponentisAjax

On Thu, Oct 18, 2012 at 1:40 PM, Advantage+ <[email protected]> wrote:

> How can I render a view block if the request is not ajax?****
>
> ** **
>
> I have a main nav which requests standard html call and loads a page with
> a sidenav block.****
>
> The sidenav requests for each mainnav section are all ajax, but when it
> loads the pages for any of the sidenav links it loads the sidenav block
> again since its defined in the view.****
>
> ** **
>
> I need to only load the sidenav if the request is not ajax.****
>
> ** **
>
> Any ideas?****
>
> ** **
>
> Thanks,****
>
> Dave****
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> 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].
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
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].
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to