Image view helper for Zend Framework

Image view helper to generate an image tag Arguments to pass are: Uniqe name for the image tag. Will be the id attribute. Path to the image file. Tag Attributes. (alt tag is required and it will generate the title tag with the same value) Optional string parameter. Currently if you enter thumnail it will…

Custom Flash Messenger for Zend Framework

FlashMessenger is an action helper in Zend Framework used to pass messages for the users on the next request. Thats all good, but what about presenting the messages for the users? how to store different type of messages, System, Error, or Success messages?

Reduce duplicated code in Zend_Controller_Action

In most of the Zend Framework projects that i worked on, i had some common actions such as, listAction, newAction, and editAction. Each of these actions have similar structure and code lines. The differences are in the name of the model or the form or the messages on a successful submission and errors.

On fly elements in Zend_Form

How to create and modify elements in Zend_Form on fly? Lets say we have a form that creates a customer address. The form has the following fields: Country (select element) Street name (text element) Region/State (text element) City (text element) Postal code (text element) When the user selects a country, we want to check our…

Custom Module Bootstrap Class

In my Zend Framework application I wanted a bootstrap class for every module. Each bootstrap class will instantiate confirguration specific for each module. You do not have to add a bootstrap class to a module if no confirguration is required for that module.