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:
parent
2cec4fe162
commit
ebadf5d24b
2 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue