Christer has written a tutorial on writing custom validators for Zend_Form_Element.
He covers how to ensure that two fields are the same:
The thing I also want to do is to ensure that the two email elements have the same value. The same goes for the two password elements. To do this I had to write a custom validator for these cases. A similar validator can be found in the Zend_Form docs but I wanted to be able to specify the names of the element(s) an element must be equal to when I add the validator instead of hardcoding them in the validator classes (like the example in the docs does).
He includes full source for the work he’s done so it is easy to follow along.
Posted by Rob on 18th April 2008 under Around the web | 2 Comments »
Robert Bolton has posted a book review of Zend Framework in Action:
At times I felt like there may be too much ancillary topics covered, however, after finishing the book, I felt overall it was good that topics such as testing, deployment, and version control were covered. While there isn’t enough information to provide in depth coverage, it exposures the reader to these topics and provides enough information to get started, rather than just briefly mentioning it. And the coverage of the different components with the Zend Framework is comprehensive and understandable. If you are looking at working with the Zend Framework, I would definitely recommend this book.
He finds both good and weak points in the book and we will, of course, see what we can do to address the issues raised.
Posted by Rob on 11th April 2008 under Around the web & Reviews & The Book | 2 Comments »
Federico Cargnelutti of PHP::Impact has posted a comphresensive list of ZF tutorials covering a significant cross-section of the components within Zend Framework.
He’s found tutorials for:
- Getting Started
- Zend_Acl
- Zend_Auth
- Zend_Controller
- Zend_Db
- Zend_Feed
- Zend_Form
- Zend_Layout/Zend_View
- Zend_Log
- Zend_Mail
- Zend_Search_Lucene
- Zend_Validate
- Web services
If you need to know something about these topics, then it’s probably worth bookmarking the post.
Posted by Rob on 4th April 2008 under Around the web | 1 Comment »
Magento, the open source eCommerce platform has reached version 1.0, it’s first production release. Magento is fully featured offering many features including multiple websites, single page checkout, coupons, internationalization and many more.
Magento uses Zend Framework behind the scenes and so if you want to see one way to build upon ZF to create a fully featured application, the source may be worth investigation.
Posted by Rob on 1st April 2008 under Around the web | No Comments »
Last week, Ralph Schindler’s webinar on Zend_Layout and Zend_View was released along with the slides in PDF format. Cal has the details on Devzone. Ralph has also released a demo application showing how to put into practice the ideas he talks about.
Posted by Rob on 31st March 2008 under Around the web & News | No Comments »
Less than ten days after the big 1.5 release there is already a new mini-release available which addresses over thirty issues.
One I’m particularly interested in, is the addition of an init() method to Zend_Form which, as in Zend_Controller_Action, is a convenience method called from __construct() allowing you to add your own initilization code more easily. Of course, on that note, my next task is to go and update the form code I’m currently working on!
Posted by Nick on 27th March 2008 under News | 4 Comments »
Unless I am the only one, there are probably a lot of you that are looking at existing applications and thinking about moving them to use Zend Framework. In this thread on the author forum a user (thanks geetarista) pointed to an interesting article by Chris Abernethy on Migrating to Zend Framework: Legacy Scripts.
Migrating an existing PHP application to Zend Framework can be a daunting task, especially if the migration must occur all at once. It is much easier to migrate the application in sections over a longer period of time.
Having not tested his idea yet I can’t say how effective it is but the idea looks good.
Posted by Nick on 20th March 2008 under Tips and Tricks | No Comments »
A new MEAP PDF has been released for those who have pre-ordered the book.
The big changes are:
- Chapter 1 has been edited
- Chapter 3 has been replaced with two new chapters: 3 and 4 now cover building the initial example website. Chapter 3 covers the setup, controllers, actionstack and database with Chapter 4 concentrating on Zend_View, Zend_Layout and the view helpers.
- Chapter 13 on mashups with public web services is available.
- Chapter 14 on caching is available.
Note that this MEAP renumbers all chapters due to the new chapter 3.
As always, let us know your thoughts on it over on the MEAP forum.
Posted by Rob on 18th March 2008 under The Book | 3 Comments »
Zend Framework 1.5 has been officially released to the world and Zend have updated the website to make it easier to find what you are looking for.
There have been loads of improvements to the framework, my favourites being Zend_Form and Zend_Layout. Other areas which received a lot of attention include OpenId and LDAP authentication, Lucene and PDF improvements, along with the new ContextSwitch helper to make writing Ajax and REST applications easier.
A new Quickstart guide has been written to get you going or you can look at my Zend Framework 1.5 tutorial if you prefer PDF or a different style of writing.
New today too is a series of getting started videos by Mitchell Hashimoto to show you get you up an running with the Framework. There are four videos so far, each one around 10 minutes long which cover installing, bootstrapping, controllers and view, and extending your ZF application. Check them out!
With the 1.5 release, Zend Framework has really come of age.
Posted by Rob on 17th March 2008 under News | 2 Comments »
The third release candidate of Zend Framework version 1.5 is now available for download. This release is shaping up nicely now and this release is nicely stable.
Officially, it’s not yet ready for production release, but you should be checking it out now ready to understand what changes will be needed to your sites when migrating. Fortunately, the documentation has a very useful chapter on migrating from 1.0.x to 1.5.0 which is a must read!
Posted by Rob on 13th March 2008 under News | 1 Comment »