在演示中获取探查器工具栏



我无法在演示环境中获得Symfony 3.1探查器工具栏

AppKernel.php:为演示启用捆绑包

if (in_array($this->getEnvironment(), ['dev', 'demo'], true)) {
$bundles[] = new SymfonyBundleDebugBundleDebugBundle();
$bundles[] = new SymfonyBundleWebProfilerBundleWebProfilerBundle();
$bundles[] = new SensioBundleDistributionBundleSensioDistributionBundle();
$bundles[] = new SensioBundleGeneratorBundleSensioGeneratorBundle();
$bundles[] = new DoctrineBundleFixturesBundleDoctrineFixturesBundle();
}

config_demo.yml

framework:
router:
resource: "%kernel.root_dir%/config/routing_demo.yml"
strict_requirements: true
profiler: false
web_profiler:
toolbar: true
intercept_redirects: false

app_demo.php

$loader = require __DIR__.'/../app/autoload.php';
Debug::enable();
$kernel = new AppKernel('demo', true);
$kernel->loadClassCache();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);

routing_demo.yml

_wdt:
resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml"
prefix:   /_wdt
_profiler:
resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml"
prefix:   /_profiler

是的,我的主页中有正文标签

我错过了什么?感谢

OK我的错误

我的演示htaccess使用的是app.php,而不是app_demo.php

对不起!

最新更新