-
Book Overview & Buying
-
Table Of Contents
CouchDB and PHP Web Development Beginner's Guide
By :
We are just about ready to test this new code out, but we need to create the actual views so that we can display them.
1. Start by creating two new files in the views folder, inside our working directory, called home.php and signup.php.
2. Add the following code to the views/home.php file by writing the following code:
Home Page <br /><br /> <?php echo $message; ?>
3. Add the following code to the views/signup.php file:
Signup Now!
We created two simple views that will be rendered by the index.php file. The line of code inside views/home.php that says<?php echo $message; ?>, will display the variable with the name message that was passed to our Bones library from our index.php file. Test it out!
Open up your browser, go to http://localhost/verge/ or http://localhost/verge/signup, and you'll see that all of our hard work has paid off. Our layout is now rendering, and our views are being displayed. We were also able...
Change the font size
Change margin width
Change background colour