@@ -17,6 +17,8 @@ in Symfony2 is straightforward. Tweak the route by adding a default value of
17
17
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
18
18
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
19
19
20
+ // ...
21
+
20
22
/**
21
23
* @Route("/hello/{name}", defaults={"_format"="xml"}, name="_demo_hello")
22
24
* @Template()
@@ -45,6 +47,8 @@ placeholder in the route pattern instead::
45
47
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
46
48
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
47
49
50
+ // ...
51
+
48
52
/**
49
53
* @Route("/hello/{name}.{_format}", defaults={"_format"="html"}, requirements={"_format"="html|xml|json"}, name="_demo_hello")
50
54
* @Template()
@@ -80,7 +84,7 @@ object from that sub-request::
80
84
81
85
$response = $this->forward('AcmeDemoBundle:Hello:fancy', array('name' => $name, 'color' => 'green'));
82
86
83
- // do something with the response or return it directly
87
+ // ... do something with the response or return it directly
84
88
85
89
Getting information from the Request
86
90
------------------------------------
@@ -270,4 +274,4 @@ That's all there is to it, and I'm not even sure we have spent the full
270
274
10 minutes. We briefly introduced bundles in the first part, and all the
271
275
features we've learned about so far are part of the core framework bundle.
272
276
But thanks to bundles, everything in Symfony2 can be extended or replaced.
273
- That's the topic of the :doc: `next part of this tutorial<the_architecture> `.
277
+ That's the topic of the :doc: `next part of this tutorial<the_architecture> `.
0 commit comments