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(); // 这个不要注释