O'Reilly logo

Pro Zend Framework Techniques: Build a Full CMS Project by Forrest Lyman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required