Let's start by creating the Bones
library and then connecting our index.php
file to it.
1. Create a file named
bones.php
inside of thelib
folder of our working directory (/Library/Webserver/Documents/verge/lib/bones.php
).2. Add the following code to the
index.php
file in our working directory, so that we can talk to the newly createdbones.php
file:<?php include 'lib/bones.php';
All that this code is doing is including our lib/bones.php
file, and that's good enough for us right now! Notice that we didn't end the file with a ?>
, as you may be accustomed to seeing. The ?>
tag is actually optional, and, in our case, leaving it will allow us to reduce the unwanted whitespace and to add headers to response later in the code, if we would like.