Routing is the action of taking the requested url and pointing the application to the correct module, controller, and action so that the request can be correctly processed. There are a number of ways to implement this using the Zend Framework, the most common of which is to create a routing object in the application […]
Meta keywords and description used to be used by search engines to help work out what your website is about. Nowadays they are used to web applications to work out how to describe a specific page (for example, paste a link into Google+ and the meta description of the page will be fetched and shown). […]
It is fairly common for me to read or hear of developers referring to the Zend Framework as ‘Zend’. Such as ‘what is zend?’, ‘why is zend doing x?’ and ‘how do I make zend do y?’. This post will hopefully explain the difference between Zend and the Zend Framework.
Anyone who has tried to validate a user input using Zend_Validate_EmailAddress will find that there are a LOT of error messages returned – one for each problem with the email address: Invalid format Invalid hostname Invalid mx record and 5 more This class will replaces all the error messages with one message.
You’re developing a huge application, but want your code to be modular so that you can use it again else where. But what happens if one module is dependent on another, and you have forgotten to include it? For example, you may have a ‘products’ module that allows you to add, edit, and view products. […]
It may be that your server does not allow you to send emails, for example a shared server or localhost that you cannot configure. In either case, if you are using the Zend Framework’s Zend_Mail component, you can have your application send the emails through GMail.
In the world of web development, forms are basis of most of your application. Everything that is displayed comes first from a form. The Zend Framework includes a wonderful form class, Zend_Form, that makes it easy to create elements, and when the form is submitted, to filter and validate the user input. What is not […]
I want to prefix the form with a title, within the form tags, but above the form elements. [html] Login Form [/html] Further more, I do not want to use a view script.
First, some definitions: A form action is the URI to which the form is submitted. Zend_Form makes it easy for developers to create complex forms that filter and validate the date from a submitted form before returning it to the rest of the application for it to do whatever is needed. In this example we […]
Canonicalisation issues occur when a webpage is able to be accessed via both www.yoursite.com/somepage and www.yoursite.com/somepage/, in severe cases this can cause the search engines to effectively index 2 identical copies of your site. Zend routes do not discriminate between pages that end in a slash or not – if a route does end in […]