Helping ordinary people create extraordinary websites!

Zend Framework Tutorial

By Lyndon Baptiste
2008-08-13

Introduction
I find myself constantly bombared with questions from students and co-workers I've introduced to the Zend Framework regarding how the different components can come together to form a basic application. I've searched, I have found, I have emailed great tutorials, but still the most common questions are posed "What's should I include in index.php?", "Should I use Zend_Db_Table?", "And what about Zend_Form?"

The Scope of This Tutorial

What I'm proposing is an article that can get help you, the reader, get your hands wet by integrating the different components as seamlessly as possible. This article is not about the setup of the zend framework or how the various stand alone components work, but rather how they can be integrated. Neither does it look at the folder structure which is required, but where absolutely necessary I will make highlights. I'm going to assume that you have your .htaccess file in your webroot, index.php created, your include paths configured and Zend Framework installed. For the purpose of this tutorial i'll be using MySQL and Zend Framework v1.5. This is a funcitonal tutorial which does not focus much on aesthetics. See Figure 1 for an illustration of my directory structure. Please note that Zend recommends that for PHP scripts the closing ?> can be omitted however for clarity in this tutorial I have included them.




Tutorial pages:

 5 Votes

You might also want to check these out:


Leave a Comment on "Zend Framework Tutorial"
You must be logged in to post a comment.

Link to This Tutorial Page!


GET OUR NEWSLETTERS