@@ -122,7 +122,7 @@ the bundle is registered with the kernel::
122
122
public function registerBundles()
123
123
{
124
124
$bundles = array(
125
- ...,
125
+ // ...
126
126
new Acme\DemoBundle\AcmeDemoBundle(),
127
127
);
128
128
// ...
@@ -282,7 +282,9 @@ route is matched::
282
282
{
283
283
public function indexAction($limit)
284
284
{
285
- return new Response('<html><body>Number: '.rand(1, $limit).'</body></html>');
285
+ return new Response(
286
+ '<html><body>Number: '.rand(1, $limit).'</body></html>'
287
+ );
286
288
}
287
289
}
288
290
@@ -420,7 +422,7 @@ Step through the Twig template line-by-line:
420
422
421
423
The parent template, ``::base.html.twig ``, is missing both the **BundleName **
422
424
and **ControllerName ** portions of its name (hence the double colon (``:: ``)
423
- at the beginning). This means that the template lives outside of the bundles
425
+ at the beginning). This means that the template lives outside of the bundle
424
426
and in the ``app `` directory:
425
427
426
428
.. configuration-block ::
@@ -451,7 +453,8 @@ and in the ``app`` directory:
451
453
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
452
454
<title><?php $view['slots']->output('title', 'Welcome!') ?></title>
453
455
<?php $view['slots']->output('stylesheets') ?>
454
- <link rel="shortcut icon" href="<?php echo $view['assets']->getUrl('favicon.ico') ?>" />
456
+ <link rel="shortcut icon"
457
+ href="<?php echo $view['assets']->getUrl('favicon.ico') ?>" />
455
458
</head>
456
459
<body>
457
460
<?php $view['slots']->output('_content') ?>
@@ -718,8 +721,8 @@ Now that you've created the bundle, enable it via the ``AppKernel`` class::
718
721
public function registerBundles()
719
722
{
720
723
$bundles = array(
721
- ...,
722
- // register your bundles
724
+ // ...
725
+ // register your bundle
723
726
new Acme\TestBundle\AcmeTestBundle(),
724
727
);
725
728
// ...
@@ -824,9 +827,12 @@ format you prefer:
824
827
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
825
828
xmlns : framework =" http://symfony.com/schema/dic/symfony"
826
829
xmlns : twig =" http://symfony.com/schema/dic/twig"
827
- xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
828
- http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd
829
- http://symfony.com/schema/dic/twig http://symfony.com/schema/dic/twig/twig-1.0.xsd" >
830
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
831
+ http://symfony.com/schema/dic/services/services-1.0.xsd
832
+ http://symfony.com/schema/dic/symfony
833
+ http://symfony.com/schema/dic/symfony/symfony-1.0.xsd
834
+ http://symfony.com/schema/dic/twig
835
+ http://symfony.com/schema/dic/twig/twig-1.0.xsd" >
830
836
831
837
<imports >
832
838
<import resource =" parameters.yml" />
@@ -1017,8 +1023,10 @@ the configuration file for the ``dev`` environment.
1017
1023
<container xmlns =" http://symfony.com/schema/dic/services"
1018
1024
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
1019
1025
xmlns : framework =" http://symfony.com/schema/dic/symfony"
1020
- xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
1021
- http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
1026
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
1027
+ http://symfony.com/schema/dic/services/services-1.0.xsd
1028
+ http://symfony.com/schema/dic/symfony
1029
+ http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
1022
1030
1023
1031
<imports >
1024
1032
<import resource =" config.xml" />
@@ -1038,7 +1046,7 @@ the configuration file for the ``dev`` environment.
1038
1046
$loader->import('config.php');
1039
1047
1040
1048
$container->loadFromExtension('framework', array(
1041
- 'router' => array(
1049
+ 'router' => array(
1042
1050
'resource' => '%kernel.root_dir%/config/routing_dev.php',
1043
1051
),
1044
1052
'profiler' => array('only-exceptions' => false),
0 commit comments