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…)
The implementation of the about page is similar to that of the home page, as described in the post The Home Page. (more…)
The home page is rendered by the index action handler of the index controller. (more…)
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…)
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…)
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…)
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…)
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…)
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…)