Updated code
This commit is contained in:
parent
b2d2fee013
commit
d9b7885c43
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue