Helping ordinary people create extraordinary websites!
HOME TUTORIALS SCRIPTS WEB HOSTING BLOG FORUM
Get Our Newsletter
Email:

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:
» Introduction
» The index.php File
» Actioning Requests
» The IndexController
» The View and Layout
» Zend_Form
» CSS Code
» Validating Our Form
» Zend_DB_Table
» Back To The Controller
» Back to Zend_DB_Table
» Putting Zend_Registry and Zend_Cache Into Perspective
» Conclusion


Related Tutorials:
» Port Scanning and Service Status Checking in PHP
» Web Database Access from Desktop Applications
» CubeCart 3.0 Installation and Configuration
» PHP Site Search Made Easy
» Installing and Configuring Drupal 6.1
» Desktop Application Development with PHP-GTK

Ask A Question
characters left.