makes up the web pages, but can include, say, XML that is used for an RSS feed. Also, if the website allows
for export in CSV format, the generation of the CSV would be part of the view. The view files themselves are
known as templates as they usually have some code that allows for the displaying of data created by the model.
It is also usual to move the more complex template related code into functions known as View Helpers, View
Helpers improve the re-usability of the view code. By default the Zend Framework’s view class (Zend_View)
uses PHP within the template files, but another template engine such as Smarty or PHPTAL may be
substitutedThe view is the display logic of the application. For a web application, this is usually the HTML code that
makes up the web pages, but can include, say, XML that is used for an RSS feed. Also, if the website allows
for export in CSV format, the generation of the CSV would be part of the view. The view files themselves are
known as templates as they usually have some code that allows for the displaying of data created by the model.
It is also usual to move the more complex template related code into functions known as View Helpers, View
Helpers improve the re-usability of the view code. By default the Zend Framework’s view class (Zend_View)
uses PHP within the template files, but another template engine such as Smarty or PHPTAL may be
substituted
