Always use absolute paths for includes

It's not safe to assume that the web server will always give you a sane
cwd.
This commit is contained in:
Chris Wright 2014-11-06 11:30:52 +00:00 committed by lubiana
parent ff4702dcd4
commit d6644adc5c
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
2 changed files with 3 additions and 3 deletions

View file

@ -19,7 +19,7 @@ Inside the `public` folder you can now create your `index.php`. Remember that yo
```php
<?php
require '../src/Bootstrap.php';
require __DIR__ . '/../src/Bootstrap.php';
```
The `Bootstrap.php` will be the file that wires your application together. We will get to it shortly.