title: symfony web debug tool bar
body: <p>When I visit <code>http://localhost/web/app_dev.php</code> I get a very nice web debug toolbar but It doesn't appear in the views rendered by "custom" controllers.</p>
  
  <p>What to do so the debug toolbar to be visible in the views rendered by controllers ?</p>
  
  <p>Here is an example of the controller I use</p>
  
  <p>
  
  <pre><code>namespace SD\BlogBundle\Controller;
  use Symfony\Component\HttpFoundation\Response;
  use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  
  class ContactsController extends Controller
  {
      public function indexAction()
      {
          $data = 'Lorem ipsum';
  
          return $this-&gt;render('SDBlogBundle:Default:index.html.twig', array('data' =&gt; $data));
      }
  }
  </code></pre>