Web Profiler not showing up in dev

后端 未结 5 1027
旧巷少年郎
旧巷少年郎 2020-12-16 17:36

Im using Symfony2 (const version=\"2.5.10\") and using xampp with PHP version 5.5.19.

I got a problem that in my dev environment the profiler didn\'t show up.What co

5条回答
  •  悲&欢浪女
    2020-12-16 18:18

    The profiler toolbar needs ... . I guess you don't have it in your twig file(s).

    Profiler

    # app/config/config_dev.yml
    web_profiler:
        toolbar: true
        intercept_redirects: false
    

    Example twig file.

    The line {% extends '::base.html.twig' %} will extend app/Resources/views/base.html.twig which injects default ... into your custom twig files.

    {% extends '::base.html.twig' %}
    
    {% block body %}
       Hello!
    {% endblock %}
    

提交回复
热议问题