Checking that a password is repeated correctly using Zend_Validate_Identical
Sunday, August 1, 2010

When a user is asked to enter a new password, it is customary to ask the user to repeat it, in order to reduce the risk of it being entered incorrectly. In the Zend Framework, there is a validator that can check whether two items are identical, but using it with Zend_Form is tricky, because it needs the values of two fields to make the comparison, while validators are attached to a single field, independently of the others. This article looks at how to use Zend_Validate_Identical with Zend_Form. (more…)

Posted by James at 10:41 am   1 comment

The Contact Page: The Contact Form
Saturday, November 7, 2009

Although the example website currently only has one form, the contact form, other forms may be added to it in the future; therefore, in implementing the form, I created an abstract base class for site forms, which contains the functionality shared by all forms. (more…)

Posted by James at 5:49 pm   0 comments

The Contact Page: The View Script
Tuesday, November 3, 2009

As with the home page, the view script for the contact page makes use of jQuery UI tabs. See the post The Home Page for more information the ZendX_JQuery view helpers used here to generate the necessary markup and JavaScript. (more…)

Posted by James at 7:26 pm   0 comments

The Contact Page: The Action Handler
Monday, November 2, 2009

The visual implementation of the contact page is similar to that of the home page, as described in the post The Home Page. However, it also makes use of Zend_Form and Zend_Validate to render and process the contact form, and Zend_Layout, Zend_Filter and Zend_Mail to render and send the contact e-mail to the site admin. (more…)

Posted by James at 10:35 pm   0 comments