Tutorial: Getting Started with Zend Framework 1.10

Screen short of Zend Framework tutorial

This tutorial is intended to give an introduction to using Zend Framework to write a simple database driven application. It has been updated for version 1.10 of the framework and takes full advantage of the Zend_Tool command line script and Zend_Application for bootstrapping. Other components used include Zend_Controller, Zend_View, Zend_Db_Table and Zend_Form.

This tutorial has been tested on version 1.10 of Zend Framework. It will not work on any version prior to version 1.10.

If you are getting 404 errors when going to any page other than the home page, please make sure that you have set AllowOverride to All in your Apache configuration and have enabled the mod_rewrite extension.

If you are deploying to a "user" site (e.g. http://localhost/~rob), then you need a RewriteBase line in your .htaccess file that looks something like: RewriteBase /~rob/zf-tutorial/public/.

English version: Dowload the PDF (v1.7.0).

Code

The associated code is available:

Further reading

Once you have finished this tutorial, consider buying my book, Zend Framework in Action. Also, the Quick Start is worth reading.

Chris Kirk has kindly provided a Q&A PDF for the 1.8 version of the tutorial which may help if you are having problems.

Previous versions of this tutorial

There have been three previous versions of this tutorial:

Changelog

1.7.0 (7/Feb/2010)
Significantly revised for Zend Framework 1.10

3 Responses to “Tutorial: Getting Started with Zend Framework 1.10”

  1. 1 eKini Web Developer Blog » Akra’s Zend Framework 1.10 Tutorial

    [...] Akrabat's blog: As a result, I have updated my Zend Framework tutorial so that it is completely current. The main change I made was to remove the _init methods in the [...]

  2. 2 elmich

    Thank you very much, great stuff, again.
    One minor problem in the zip files though:
    IndexController.php line 91 (deleteAction)
    $albums = new Model_DbTable_Albums();
    generates an error
    forgot the 'Application_'?
    greets,
    el mich

  3. 3 Rob...

    Thanks for letting me know. I've updated the zip files.

    Regards,

    Rob...

The views expressed in these comments are not the views of the publisher. However, we believe in the rights of others to express their legitimate views and concerns. Any legitimate complaint emailed to rob@akrabat.com will be seriously considered and the post reviewed as desirable and necessary.

Leave a Reply

Buy now!