开发者

how to make the symfony debug bar collapsed by default?

开发者 https://www.devze.com 2023-03-06 11:28 出处:网络
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 hac

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

精彩评论

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