Updated code

This commit is contained in:
Patrick Louys 2016-11-01 16:23:28 +01:00 committed by GitHub
parent b2d2fee013
commit d9b7885c43

View file

@ -11,7 +11,7 @@ We will need a descriptive name for the classes that handle the requests. For th
Create a new folder inside the `src/` folder with the name `Controllers`.In this folder we will place all our controller classes. In there, create a `Homepage.php` file.
```php
<?php
<?php declare(strict_types = 1);
namespace Example\Controllers;
@ -53,4 +53,4 @@ So instead of just calling a method you are now instantiating an object and then
Now if you visit `http://localhost:8000/` everything should work. If not, go back and debug. And of course don't forget to commit your changes.
[<< previous](05-router.md) | [next >>](07-inversion-of-control.md)
[<< previous](05-router.md) | [next >>](07-inversion-of-control.md)