Search code examples
symfony1

how to make the symfony debug bar collapsed by default?


is there a command to make the debug bar collapsed for every request?

I can't find it in the documentation.


Solution

  • Not out of the box, but I've implemented the following small JavaScript hack (my example requires jQuery):

    <script type="text/javascript">
    jQuery(function($) {
      if (typeof sfWebDebugToggleMenu != 'undefined') {
        sfWebDebugToggleMenu();
      }
    });
    </script>