Tutorial: Getting started with Zend Framework 2 (beta)

Screen short of Zend Framework 2 tutorial

This tutorial is intended to give an introduction to using Zend Framework 2 to write a simple database driven application.

This tutorial only works on the current development code for Zend Framework 2.

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.

English version: Download the PDF (v0.2.7).

Code

The associated code is available from github.

Further reading

The Quick Start is worth reading, as is the manual.

Changelog

0.2.7 (19/Feb/2012)
Fix raising of exception as found by Bart McLeod
0.2.6 (18/Feb/2012)
Another typo fix found by Solow from #zftalk.2.
0.2.5 (4/Feb/2012)
Another typo fix found by Petro Boychuk.
0.2.4 (7/Jan/2012)
Another typo fix found by RWOverdijk from #zftalk.2.
0.2.3 (23/Dec/2011)
Yet more typo fixes found by RWOverdijk and MikeA from #zftalk.2.
0.2.2 (22/Dec/2011)
Even more typo fixes found by Evil_Otto from #zftalk.2.
0.2.1 (21/Dec/2011)
Typo fixes found by Evil_Otto from #zftalk.2.
0.2.0 (20/Dec/2011)
Update to support ZF2 beta 2.
0.1.5 (30/Nov/2011)
Update to support the new parameter order in the url() view helper.
0.1.4 (20/Nov/2011)
Update to support latest changes to ZF2's ModuleManager.
0.1.3 (6/Nov/2011)
Typos fixed as reported by mtvic and Christoffer Holmstedt.
0.1.2 (23/Oct/2011)
Typos fixed as reported by sandersjj.
0.1.1 (20/Oct/2011)
Typos fixed as reported by Richard Kellner.
0.1 (18/Oct/2011)
Initial release. Only works with ZF2 beta 1.

6 Responses to “Tutorial: Getting started with Zend Framework 2 (beta)”

  1. 1   Zend Framework / Zend Framework 2.0.0 beta1 Released by SOS Admin!

    [...] Tutorial: Getting started with Zend Framework 2 (beta1) by Rob [...]

  2. 2 ZF 2.0 débarque dans nos développements ? « Génération PC

    [...] et déjà d'une version actualisée du tutoriel de Rob Allen (Akrabat) : Getting started with Zend Framework 2 (Débuter avec Zend Framework 2). Ce tutoriel ne dispose pas pour le moment de traduction en [...]

  3. 3 Zend Framework 2.0.0 beta1 Released | Str@nnik's blog

    [...] Tutorial: Getting started with Zend Framework 2 (beta1) by Rob Allen. P.S.S Мой пост на хабре по пово'у [...]

  4. 4 ModernNerds » Using Grip with Zend Framework 2

    [...] If you've been following / contributing to Zend Framework 2 then you have most likely have read / seen Rob's (@akrabat)Getting started with Zend Framework 2. [...]

  5. 5 Using Doctrine 2 in Zend Framework 2 | The Blog of Jason Grimes

    [...] to work with third-party code as modules. Rob "Akrabat" Allen has updated his iconic Getting Started with Zend Framework tutorial for ZF2, and it's a great place to start. After working through that tutorial, the [...]

  6. 6 Zend Framework 2 | Kerek egy ég alatt

    [...] Tutorial: Getting started with Zend Framework 2 (beta) Elfogadom mások szeretetét, segítségét.Related posts: [...]

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.