I am trying to do this from a remote computer so the app_dev.php is:
<?php
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Debug\Debug;
$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
Debug::enable();
require_once __DIR__.'/../app/AppKernel.php';
$kernel = new AppKernel('dev', true);
$kernel->loadClassCache();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
After the template renders I get this:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Title</title>
</head>
<body>
<h1>Give us a toolbar now will you?</h1>
</body>
</html>
Looks like valid html and has a body element but no tool bar is there.
I have only ftp access so renamed the Symfony/app/cache folder to gone.
I have confirmed that app_dev.php executes Debug::enable();
and $kernel = new AppKernel('dev', true);
(adding an error there causes an error.
I have confirmed that valid html is produced rendering index.html.twig (not a cached one). I have renamed the cache directory.
Not sure what else to check to have it show the tool bar.
You must enable the profiler in AppKernel.php
public function registerBundles()
{
$bundles = ...
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
...
}
return $bundles;
}
And make sure that you have JavaScript enabled.