concept Zend_View in category php

This is an excerpt from Manning's book Zend Framework in Action.
The MVC components provide a full-featured MVC system for building applications that separates out the view templates from the business logic and controller files. Zend Framework’s MVC system is made up of Zend_Controller (the controller) and Zend_View (the view) with Zend_Db and the Zend_Service classes forming the model. Figure 1.5 shows the basics of Zend Framework’s MVC system, using Zend_Db as a model.
Zend_View is the view component of the MVC troika and is a fairly simple PHP-based template system. As we have seen, the assign() function is used to pass variables from the main code body to the template, which can then be used within the view template file.
The Zend_View class keeps the view portion of an MVC application separate from the rest of the application. It is a PHP template library, which means that the code in the view scripts is in PHP rather than another pseudo-language, like Smarty for instance. However, it is easy to extend Zend_View to support any other template system.
Let’s start our exploration of Zend_View by looking at how to assign data to the view. Zend_View’s assign() method is used to display data from the model. Simple variables can be assigned to a view variable like this: