Zend Framework View Scripts
Monday, October 5, 2009
The previous post described the request handling process up to the point where the controller passes control to the view script.
Each module has its own view scripts directory. Normally, this is called scripts and is contained inside the views directory.
Inside the view scripts directory is a directory for each controller and named after that controller. For instance, the index controller will have a directory called index.
This will contain a script file associated with each action, unless that action explicitly does not make use of a view script. This will be named [action].phtml, e.g. index.phtml for the index action.
This script will be responsible for rendering the basic content of the response. If the application is using a layout, it will be framed within that. We shall look at layouts in a later post.
The view script can be passed values from the controller via the Zend_View object. We shall look at this, and other interactions between the controller and view, in the next post.

Practical Web 2.0 Applications with PHP (Expert's Voice) by Quentin Zervaas
Beginning Databases with PostreSQL: From Expert to Professional 2nd Edition: From Novice to Professional by Neil Matthew, Richard Stones