Bootstrap is going to save us some real time again; we just need a little bit of HTML markup for our application to look pretty nice! Replace the contents of views/home.php
with the following:
<div class="hero-unit"> <h1>Welcome to Verge!</h1> <p>Verge is a simple social network that will make you popular.</p> <p> <a href="<?php echo $this->make_route('/signup') ?>" class="btn btn-primary btn-large"> Signup Now </a> </p> </div>
We just added a nice clean layout for our home page with a button to prompt people to sign up when they come to our site. Notice that we removed<? php echo $message; ?>
from the file, when we originally added that to display simple messages to our users, but we're going to explore a cleaner way of doing that later in this chapter.
Ready to see some magic? Open your browser, and go to http://localhost/verge/.
We've barely had to spend...