Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to include Web Debug Toolbar in Symfony Response?

Tags:

symfony

When I render a template and return a Response from a Controller, there is a nice Web Debug Toolbar on the bottom of the page.

Is it possible to make this bar appear when I don't use template and return a response by creating a Response object myself?

like image 907
Dawid Ohia Avatar asked Dec 16 '11 11:12

Dawid Ohia


1 Answers

It should be sufficient to make sure there is a valid <body>...</body>-block contained in the response-HTML-code. if the body-section is missing, then the debug toolbar won't appear.

like image 155
Raffael Avatar answered Sep 27 '22 17:09

Raffael