Using CKEditor with the Zend Framework
Friday, July 15, 2011

At the moment I am working on create a system that allows non-technical users to easily add and edit product pages on one of the website I have developed. Until now, adding or modifying a page has required modifications to the database and/or a PHP script file, along with uploading any new resources, such as images or documents. This has meant in practice that either I or one of the more technically minded people at the client has tended to do these changes. The idea of the new system is that it will allow anyone to add/edit product pages. (more…)

Posted by James at 5:39 pm   0 comments

The Login Page: The Login Form
Monday, November 15, 2010

The Login Form is a simple form, consisting of three elements: the username field, the password field and the login button. (more…)

Posted by James at 11:51 pm   0 comments

The Login Page: The login/index view script
Wednesday, November 3, 2010

The previous post discussed the implementation of the Login Controller; in this post, we will look at the implementation of the view script associated with the login/index action. (more…)

Posted by James at 9:00 am   0 comments

The Login Controller
Thursday, October 28, 2010

Following on from my overview of authentication and access control, I intend to first look at the implementation of a Login controller. This will handle two basic request: /login and /login/logout. These correspond to a user’s attempt to login via the login form, and a logout request, typically via a page link. (more…)

Posted by James at 8:30 pm   2 comments

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