The Navigation Link View Helper
Tuesday, October 27, 2009
In this post we will look at a custom view helper, which is used on the sample website to render a link to a page in the site navigation. (more…)
In this post we will look at a custom view helper, which is used on the sample website to render a link to a page in the site navigation. (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…)
The application makes use of two stylesheets. The first is called default.css and is located in the htdocs/css directory. The second is called jquery-ui-1.7.2.custom.css and is located in the htdocs/css/smoothness, along with its associated image files; this was created using the jQuery UI ThemeRoller and is used by the jQuery UI components. We will be looking at the first of these in this article. (more…)
We looked at Zend_Layout in general terms in the previous now; now we are going to examine the main layout script used in the sample application. (more…)
The Zend Framework is shipped with a template module called Zend_Layout. This allows the specific content for a page to be injected into one or more places in some standard content. (more…)
The Zend Framework provides a convenient mechanism for encapsulating code used repeatedly to render parts of view scripts. For instance, it is shipped with the standard helper Zend_View_Helper_HtmlList, which is used to convert a list in PHP array for to the corresponding HTML markup. As well as the many standard helpers, it is also possible to create your own. (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…)
The previous post described the request handling process up to the point where the controller passes control to the view script. (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…)