PhpRiot
Blog Archive
Buy My Book
Practical Web 2.0 Applications with PHP

Practical Web 2.0 Applications with PHP

Want to assert yourself as a cutting–edge PHP web developer? Take a practical approach...

Zend Framework 1.5.0 released

Zend Technologies today released version 1.5.0 of its Zend Framework, which is good for developers since it brings new features and bug fixes, but more work if you try to keep your sites up-to-date with the latest version.

There are some new components available in this version, such as support for OpenID, the new Zend_Form component, and the new Zend_Layout component.

Although I haven't yet used Zend_Layout, reading through the documentation I'm finding it hard to see what real use it provides. To me it looks like an extra presentation layer that doesn't really achieve anything that can't be done using Zend_View (or a custom implementation, such as using Smarty).

The idea of Zend_Form is good, although I think if I ever use this component I would just use it for form processing and not use it to generate my HTML output. Doing so blurs the lines once again between presentation and application logic. Additionally, defining validation rules in a form processor is not always an ideal solution. For instance, if you want to use similar versions of the form on different areas of the site (such as the public area of the site and in an administration area), you may find yourself duplicating validation rules. The alternative to this would be define them in the central class that manages the respective data.

Another improvement is in the Zend_Search_Lucene component. According to the press release, "Now it is possible to implement advanced queries using wildcards, date ranges, and fuzzy searches from within a Zend Framework application". This component is extremely powerful and these new features sound like they will be really useful.

The Zend_Pdf component has been improved so it now supports UTF-8. In my own dealings with this component in prior versions, it felt like the overall component was very immature compared to other ZF components (in areas such as API/PhpDoc comments, coding style and in the official documentation). Not only that, it seemed like a lot of obvious features were missing. I'd like to be proven wrong on this as I really want to be able to use it.

Finally, there are notes about the Gdata (used for Google services) handling being improved. While improvements are good, my general feeling on all these third-party services in Zend Framework is simply that they shouldn't be in there. The ZF should provide the tools to solve problems, it shouldn't solve specific problems such as how to communicate with Google, Amazon, Delicious, Flickr or Yahoo!.

Submit a Comment
Use the following form to submit a comment for this blog post. You can include any required code snippets, which we will format and highlight accordingly.


Note: Before your comment appears on PhpRiot, it must be manually approved. The email address field is optional. If you choose to include it, it will be displayed obfuscated to protect it from spammers.