Well, I've found it.
{% if app.request.isXmlHttpRequest %}}
This is Ajax request
{% else %}
No, this is not an ajax request
{% endif %}
So you can use
{% extends app.request.isXmlHttpRequest ? "layout-ajax.html.twig" :
"layout.html.twig" %}
--
If you want to report a vulnerability issue on s
What exactly is your problem?
how to logon with user infomation in MySQL DB
Can you please elaborate?
--
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 "symfon
Hello.
I would like my AJAX site to be usable with Javascript disabled also. That
means most pages can be loaded by AJAX calls and by normal page request
calls in browser. Is there a way to automatically handle AJAX calls in
symfony2 so that on AJAX calls templates are not decorated by the layo
NetBeans 6.8 has built-in Symfony support. I have composed small blog-
post about setting up symfony project in NetBeans:
http://www.fractalizer.ru/frpost_393/free-opensource-symfony-friendly-ide-netbeans-6-8/
I consider now NetBeans as a replacement for Zend Studio ;)
--
You received this messa
Hello.
I am trying to reset password for symfony website here:
http://www.symfony-project.org/user/password/reset
But every time I submit form, I get "Reset token: The token has
expired. You must re-submit the reset password form." I wonder how
quick should I be typing my password? :) :)
Best reg