I'm using $request->isXmlHttpRequest()
to capture ajax requests from the browser in a Symfony2 project. The actual requests work fine, unless there are any errors in my twig template being rendered, in which case nothing appears to happen in response. Annoyingly, the Symfony2 Profiler doesn't show any information about the template that was supposed to be rendered - no details on the route that was matched, variable values, nor any database calls.
Can someone enlighten me as to why this is?