Skip to main content


developerWorks  >  Open source  >

Understanding the Zend Framework, Part 2: Model-View-Controller and adding a database

Building the perfect reader

developerWorks

Level: Intermediate

Nicholas Chase (ibmquestions@nicholaschase.com), Consultant, Backstop Media
Tracy Peterson (tracy@tracypeterson.com), Freelance Writer, Consultant

11 Jul 2006

Register now or sign in using your IBM ID and password.

In Part 1 of this "Understanding the Zend Framework" series, we discuss the goals behind the Zend Framework, including easy-to-use components and an architecture based on the Model-View-Controller (MVC) pattern. Now we start to actually put that to use. In this tutorial, you will see how to use the Zend Framework to create the beginnings of our online feed reader, Chomp, creating a form and adding information to a database while getting to know the MVC pattern.

In this tutorial

This tutorial is for developers who want to better understand the MVC pattern, and for those who wish to use and learn more about the Zend Framework.


Prerequisites

This tutorial assumes that you are familiar with PHP. You should also have basic familiarity with how databases work, but you don't need to be an expert in the use of SQL.


System requirements

To follow along, you will need to have several pieces of software installed. This tutorial will cover installation and configuration, but make sure to download the following:

WAMP
WAMP is an easy-to-install version of Apache, MySQL, and PHP rolled into one. This is what we've used for this tutorial. The version we used contains Apache V2.0.55, PHP V5.1.4, and MySQL V5.0.21.
Zend Framework
This set of PHP classes is where all the work will be done. The framework is still at an early stage, even though it does include a lot of functionality. This tutorial was tested with V0.1.3.

And for a step-by-step guide to installing the individual pieces -- Apache, PHP, and MySQL -- on Windows® or Linux®, check out this screen cast.



Formats

html, pdf


Share this....

digg Digg this story del.icio.us del.icio.us Slashdot Slashdot it!


Back to top


Document options

Document options requiring JavaScript are not displayed


More in this series:
Understanding the Zend Framework