September 2017
Intermediate to advanced
244 pages
6h 44m
English
Before proceeding toward endpoints, let's first identify and tackle things that we will need in serving all endpoints. Here are those things:
Open index.php, remove the old hello world code and place this code in the index.php file:
<?phpini_set('display_errors', 1);error_reporting(E_ALL);require __DIR__."/../core/bootstrap.php";
On the first two lines, we are basically making sure that we can see errors if there are errors in our code. The actual magic is happening in the last statement where we are requiring bootstrap.php.
It is just another file that we are going to create in the ~/blog/core directory. In the blog directory, we are going to create a core directory ...
Read now
Unlock full access