how to make the symfony debug bar collapsed by default?
is there a command to make the de开发者_开发百科bug bar collapsed for every request?
I can't find it in the documentation.
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>
For Symfony 3.0.9, javascript:
window.localStorage['sf2/profiler/toolbar/displayState'] = 'none';
精彩评论