@@ -277,10 +277,9 @@ developers. In our example, we only have one bundle, ``HelloBundle``.
277
277
Templates
278
278
~~~~~~~~~
279
279
280
- So, the controller renders the ``HelloBundle:Hello:index.html.twig `` template.
281
- But what's in a template name? ``HelloBundle `` is the bundle name, ``Hello ``
282
- is the controller, and ``index.html.twig `` the template name. By default, the
283
- sandbox uses Twig as its template engine:
280
+ The controller renders the ``HelloBundle:Hello:index.html.twig `` template. By
281
+ default, the sandbox uses Twig as its template engine but you can also use
282
+ traditional PHP templates if you choose.
284
283
285
284
.. code-block :: jinja
286
285
@@ -291,10 +290,6 @@ sandbox uses Twig as its template engine:
291
290
Hello {{ name }}!
292
291
{% endblock %}
293
292
294
- Congratulations! You have looked at your first Symfony2 piece of code. That was
295
- not so hard, was it? Symfony2 makes it really easy to implement web sites
296
- better and faster.
297
-
298
293
.. index ::
299
294
single: Environment
300
295
single: Configuration; Environment
@@ -326,11 +321,10 @@ working on a project.
326
321
Final Thoughts
327
322
--------------
328
323
329
- The 10 minutes are over. By now, you should be able to create your own simple
330
- routes, controllers, and templates. As an exercise, try to build something
331
- more useful than the Hello application! But if you are eager to learn more
332
- about Symfony2, you can read the next part of this tutorial right away, where
333
- we dive more into the templating system.
324
+ Thanks for trying out Symfony2! By now, you should be able to create your own
325
+ simple routes, controllers and templates. As an exercise, try to build
326
+ something more useful than the Hello application! If you are eager to
327
+ learn more about Symfony2, dive into the next section: the view system.
334
328
335
329
.. _sandbox : http://symfony-reloaded.org/code#sandbox
336
330
.. _YAML : http://www.yaml.org/
0 commit comments