Chapter 4. Managing the view

This chapter covers
  • Understanding the Composite View design pattern
  • Using the Zend_Layout component
  • Building a front controller plug-in to initialize the view
  • Creating cleaner scripts by using view helpers

In Chapter 3, we created a project, the Places to take the kids! website, that will showcase features of Zend Framework over the course of this book, and will demonstrate how to integrate components into a proper web application. We have looked at the directory structure, creating a model and a controller for the home page, and also at how to test these. To complete the first stage of the website, we now need to create view scripts.

The view is the section of your application that the user interacts with, so ...

Get Zend Framework in Action now with O’Reilly online learning.

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