symfony2显示调试工具栏

1. app/config/config_dev.yml

framework:
    templating:
        engines: ['twig']
    router:
        resource: "%kernel.root_dir%/config/dev/routing.yml"
        strict_requirements: true
    profiler: { only_exceptions: false }

web_profiler:
    toolbar: true
    intercept_redirects: true

2. web/app_dev.php

$kernel = new AppKernel('dev', true); 
Debug::enable(); // 这个不要注释

 

posted @ 2020-03-27 09:59  study_php_java_C++  阅读(374)  评论(0编辑  收藏  举报