O'Reilly logo

CouchDB and PHP Web Development Beginner's Guide by Tim Juravich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — sprucing up the home page

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>

What just happened?

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required