In this section, we'll create a simple layout file called
layout.php. Remember that in our
render function, there is a default value for
$layout, and that is set to
layout. This means that, by default,
Bones will look for
views/layout.php. So, let's create that file now.
<html> <body> <h1>Verge</h1> <?php include($this->content); ?> </body> </html>
We created a very simple HTML layout that will be used in all of our views in the application. If you remember, our
render function in
Bones uses the path set as the
$content variable that we set in the previous ...