The About Page
Sunday, November 1, 2009

The implementation of the about page is similar to that of the home page, as described in the post The Home Page. (more…)

Posted by James at 5:36 pm   0 comments

The Home Page
Monday, October 26, 2009

The home page is rendered by the index action handler of the index controller. (more…)

Posted by James at 8:49 pm   0 comments

The Error Controller
Wednesday, October 21, 2009

There are two basic kinds of errors that occur in Zend Framework applications: Page Not Found and Internal Error. These are handled by the error controller. (more…)

Posted by James at 7:45 pm   0 comments

Zend Framework Controller and View Interaction
Tuesday, October 6, 2009

As mentioned previously, the framework normally tries to find and execute a view script after exiting the action method in the controller class; to stop it from doing this, you need to add the following line to the method: (more…)

Posted by James at 6:35 pm   0 comments

Zend Framework Controllers
Sunday, October 4, 2009

As discussed in the previous post, the Zend Framework breaks down a request into four parts: module, controller, action and parameters. When it has down this, it looks for the appropriate handler for the specified combination of module, controller and action. (more…)

Posted by James at 7:12 pm   0 comments

Zend Framework MVC Overview
Saturday, October 3, 2009

Up to this point we have been considering the bootstrapping process for Zend Framework applications. Now we come to the main part of handling a request: the Zend Framework MVC structure. (more…)

Posted by James at 8:09 pm   0 comments

Bootstrapping the Application: the Standard Router Resource Plugin
Sunday, September 27, 2009

The Zend Framework uses the Zend_Controller_Router_Rewrite class to decompose requests into module/controller/action/parameters, which are then despatched to the appropriate class for handling. It is possible to attach some custom handling to the router to allow for special handling of certain requests. For instance, you may want to allow Google to retrieve your sitemap via a request for http://www.example.com/sitemap.xml. The router allows this to be converted into a request for a particular combination of module/controller/action/parameters, which can then be handled in the usual way. E.g. the above request might be treated as equivalent to http://www.example.com/default/sitemap/index. (more…)

Posted by James at 2:03 pm   0 comments

Bootstrapping the Application: the Standard Front Controller Resource Plugin
Thursday, September 24, 2009

The Zend Framework uses the front controller pattern. This involves all requests being channeled via a single object. To make use of the front controller you need to create an instance of Zend_Controller_Front and run it. Zend_Application automates this process. (more…)

Posted by James at 8:35 pm   0 comments
« Previous Page