p. Rob Allen recently posted a new 18 page “Getting Started” guide for those interested in the Zend Framework. The 18 page PDF opens with a page on exactly what MVC means in a web-centric world. Rob explains in few but clear words exactly why it’s important. (hint:Maintainability)
p. First, the links:
* “The Announcement”:http://www.akrabat.com/2006/08/16/my-take-on-a-zend-framework-tutorial/#comments
* “The PDF”:http://www.akrabat.com/wp-content/uploads/getting-started-with-the-zend-framework_10.pdf
* “The Sourcecode”:http://www.akrabat.com/wp-content/uploads/zf-tutorial_10.zip
p. Rob does a great job of walking the reader through all the salient points of how to get going with a project built on the Zend Framework. In the beginning he covers:
* Directory Structure
p. The sample application Rob builds is a CD library. You basic, ADD/EDIT/DELETE database application. Nothing too taxing but then again, for a tutorial you don’t want the user to have to struggle with the concepts AND the code.
p. In wrapping things up Rob draws a conclusion for the readers who make it all through way to the end. I appreciate Rob, a long-time contributor to the framework mailing list and effort, taking the time to point out the pot-holes as well as the pavement for new users. His conclusion is correct and will hopefully be addressed by the framework team in an upcoming release.
bq. Whilst developing this tutorial, the most obvious thing missing to me was a better way to do
models. I can see why the ActiveRecord pattern is currently very popular! There is a proposal
in the Framework wiki for a Zend_Db_Model. The overview for Zend_Db_Model is: “An
object that wraps a row in a database table or view, encapsulates the database access, and
allows to adds domain logic on that data”. Something along these lines would be very helpful
for developing applications using the Zend Framework.
p. The tutorial has sparked quite a conversation over on the “Framework Mailinglist”:http://framework.zend.com/wiki/spaces/viewmailarchive.action?key=ZFMLGEN.
p. Thanks Rob for adding to the collective intelligence of the web. If you are looking to get started with the Zend Framework, this is a great starting place.