symfony2显示调试工具栏
Posted init-007
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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(); // 这个不要注释
以上是关于symfony2显示调试工具栏的主要内容,如果未能解决你的问题,请参考以下文章