开发者

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';
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜