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 2cec4fe162
commit ebadf5d24b
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.