PHP, Zend Framework and Other Crazy Stuff
PHP General
An Example Zend Framework Blog Application Tutorial (Revised)
Nov 5th
The Zend Framework has been with us for quite some time but exploratory articles which deliver a full example of how to use the Framework without getting completely buried in the detail remain thin on the ground. To add to the landscape, last April I wrote Part 1 of an “Example Zend Framework Blog Application Tutorial” and the series continued for 9 Parts.
A lot happens in a short time! The Zend Framework has itself added more features, corrected bugs, and programmers have started to wield the framework in greater numbers. This “Revised” series is an update to the original series which temporarily ceased over the Summer months. In these revised articles I’ll continue the tradition of detailed examinations of specific topics within the scope of a single real life Blog Application, which I will be deploying once completed, with the addition of corrections, better flowing steps and additional pointers.
No one person article is capable of being perfect. Over the months people have made dozens of comments by blog and email and these will also be incorporated along with several intermediary editing entries. The result should be a fantastic introduction to the Zend Framework which gets down and dirty with a real application but keeps the overwhelming details at a distance. The point is to see a real application being developed in simple consumable steps without repeating the entire reference manual.
The revised series will also spark the process of a more formalised publishing process. As new Parts are unveiled, transformed PDF and HTML versions will come online (at an undisclosed future location) for download. You will be able to print off copies for future reference outside of the current blog format. Unlike the blog, these are more malleable to subsequent updates and corrections. Manning’s MEAP in other words – without the upfront cost (though donations to my server costs will be appreciated
).
The PDF/HTML publishing process has been setup and automated for quite a while. Some of you might have remembered the test PDF release of Part 9 to see how the format struck readers. I’ll talk more about that process in a future article because it’s nice to show that professional looking documentation isn’t remotely difficult and just takes a little bit of patience to get your environment setup for it.
Expect Part 1 (Revised) in the very near future!
I had a lot of internal debate over what to do with the tutorial. The summer months made it clear that hosting the series was beyond the capabilities of a shared host, and I later discovered even my Slicehost account was running into swap space. To balance my complete devotion to free access to the series with the resources needed to keep it online, I’ll be adopting a mixed donation/advertising model. The blog will always (emphatically!) remain ad free but the PDF/HTML versions will have a prominant donations button and at least one advertisement column (ed: not in the actual PDF file – just its hosting page). The resulting funds should cover the hosting costs quite handily.
More details soon. It’s been a long time coming.
Example Zend Framework Blog Application Tutorial: Parts 1-8 Revisited
Oct 31st
By now many readers are aware of the all-consuming mega tutorial I’ve been writing illustrating one method of writing a blog application with the Zend Framework. What started initially as a possible book project switched over to a more open process of blog posts with a future PDF version as a standard reference project.
Back during the Summer I had to put the series on hold, but it’s time to get kicking again. So to spark the revival here’s a quickie tour to allow readers catch up on my intentions since Parts 1 to 8 were originally published.
If you’re looking for the series, here are the relevant links! Subsequent parts will follow soon.
Edit: Part 9 will be reposted within a few days. I located my text file backup of the original (preferable to relying on a third party snapshot sans corrections).
Part 1: Introductory Planning
Part 2: The MVC Application Architecture
Part 3: A Simple Hello World Tutorial
Part 4: Setting the Design Stage with Blueprint CSS Framework and Zend_Layout
Part 5: Creating Models with Zend_Db and adding an Administration Module
Part 6: Introduction to Zend_Form and Authentication with Zend_Auth
Part 7: Authorisation with Zend_Acl and Revised Styling
Part 8: Creating and Editing Blog Entries with a dash of HTMLPurifier
My plans for the revival require a short detour to the original articles. It was always my intention to run a multi-step process. First I would write the code as quickly as possible. Secondly I would create a blog post which bumps the maximum entry size for Serendipity. Third I would transfer the entry into a longer more detailed Docbook format for easy transfer to HTML and PDF. Fourthly I would make the new formats available on a donation funded website.
Plans being plans – sometimes they go awry or get delayed. That’s what happened over the Summer when my time was occupied, too occupied to even keep my blog online!
Over the next month I will polish the first 8 entries, and proceed with the final chapters. I have a rough plan of what future parts remain (more than 1, less than 100
) but it’s not certain and luckily I don’t have a publisher who is happy to restrict me to 200 pages. Self-publishing for fun has its perks!
Obviously a lot happens in programming over the course of months (sometimes weeks) so for every part you can currently read, you can expect an updated version which reflects my own, and others’, growing body of habitual programming practices where the Zend Framework is concerned. One debatably major update will be to polish areas I simplified too much (like setting up database connections) since at the end of the day, simplification has led to subtle inefficiencies (like database connections loading even if a database is not required
).
