@@ -11,7 +11,7 @@ better software than with flat PHP, you'll see for yourself.
1111In this chapter, you'll write a simple application in flat PHP, and then
1212refactor it to be more organized. You'll travel through time, seeing the
1313decisions behind why web development has evolved over the past several years
14- to where it is now.
14+ to where it is now.
1515
1616By the end, you'll see how Symfony2 can rescue you from mundane tasks and
1717let you take back control of your code.
@@ -132,7 +132,7 @@ to the area of *your* code that processes user input and prepares the response.
132132In this case, our controller prepares data from the database and then includes
133133a template to present that data. With the controller isolated, you could
134134easily change *just * the template file if you needed to render the blog
135- entries in some other format (e.g. ``list.json.php `` for JSON format).
135+ entries in some other format (e.g. ``list.json.php `` for JSON format).
136136
137137Isolating the Application (Domain) Logic
138138~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -424,7 +424,7 @@ an autoloader that Symfony provides. An autoloader is a tool that makes it
424424possible to start using PHP classes without explicitly including the file
425425containing the class.
426426
427- First, `download symfony `_ and place it into a ``vendor/symfony/ `` directory.
427+ First, `download symfony `_ and place it into a ``vendor/symfony/symfony/ `` directory.
428428Next, create an ``app/bootstrap.php `` file. Use it to ``require `` the two
429429files in the application and to configure the autoloader:
430430
@@ -434,11 +434,11 @@ files in the application and to configure the autoloader:
434434 // bootstrap.php
435435 require_once 'model.php';
436436 require_once 'controllers.php';
437- require_once 'vendor/symfony/src/Symfony/Component/ClassLoader/UniversalClassLoader.php';
437+ require_once 'vendor/symfony/symfony/ src/Symfony/Component/ClassLoader/UniversalClassLoader.php';
438438
439439 $loader = new Symfony\C omponent\C lassLoader\U niversalClassLoader();
440440 $loader->registerNamespaces(array(
441- 'Symfony' => __DIR__.'/../vendor/symfony/src',
441+ 'Symfony' => __DIR__.'/../vendor/symfony/symfony/ src',
442442 ));
443443
444444 $loader->register();
@@ -564,7 +564,7 @@ them for you. Here's the same sample application, now built in Symfony2:
564564 ->getEntityManager()
565565 ->getRepository('AcmeBlogBundle:Post')
566566 ->find($id);
567-
567+
568568 if (!$post) {
569569 // cause the 404 page not found to be displayed
570570 throw $this->createNotFoundException();
@@ -581,7 +581,7 @@ now quite a bit simpler:
581581
582582..code-block ::html+php
583583
584- <!-- src/Acme/BlogBundle/Resources/views/Blog/list.html.php -->
584+ <!-- src/Acme/BlogBundle/Resources/views/Blog/list.html.php -->
585585 <?php $view->extend('::layout.html.php') ?>
586586
587587 <?php $view['slots']->set('title', 'List of Posts') ?>