Le 07/05/2011 11:39, abernier a écrit :
Hey,

Thanks for the answer.

I tried with:

<?php if (!$app->isXmlHttpRequest()): $view-
extend('MyBundle::layout.html.php'); endif; ?>
     >  Call to undefined method Symfony\Bundle\FrameworkBundle
\Templating\GlobalVariables::isXmlHttpRequest()
<?php if (!$app->request->isXmlHttpRequest()): $view-
extend('MyBundle::layout.html.php'); endif; ?>
     >  Undefined property: Symfony\Bundle\FrameworkBundle\Templating
\GlobalVariables::$request

Do I miss something?

Thank you.
$app->getRequest()->isXmlHttpRequest()
See http://api.symfony.com/2.0/Symfony/Bundle/FrameworkBundle/Templating/GlobalVariables.html

--
Christophe | Stof

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to