Chapter 2. Designing Your Site

In this chapter, you'll create the template for your CMS using Zend_View and Zend_Layout, which make up the presentation layer for the Zend Framework.

Rendering the Presentation Layer with Zend_View

The core purpose of the Zend_View class is to separate this presentation code from the application logic and data. Separating the HTML from your core application code makes all your code easier to read and follow.

View Scripts

The view scripts are basically PHP files that are rendered within the scope of Zend_View. As such, you can use any of the standard PHP that you need to create your dynamic templates. This is one of the things that I like best about the framework; it gives you a rich set of tools to help with common ...

Get Pro Zend Framework Techniques: Build a Full CMS Project now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.