23. AppKernel.php
// src/AppKernel.php
use SymfonyComponentHttpKernelKernel;
use SymfonyComponentConfigLoaderLoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new SymfonyBundleTwigBundleTwigBundle(),
...
);
return $bundles;
}
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
}
}
65. Response
Response
HTTP/1.1 200 OK
Headers Content-type: text/html
Date:Thu, 31 May 2012 17:54:50 GMT
Version
Content <!DOCTYPE HTML>
<html lang="es">
<head>
Status code
<meta charset="utf-8">
...
Status text
Charset