There are three families of
classes that make up the MVC system: Zend_Controller (Controller), Zend_View (View) and Zend_Db
(Model). Figure 1.5 shows the basics of the Zend Framework??™s MVC system.
Licensed to Menshu You
Please post comments or corrections to the Author Online forum at
http://www.manning-sandbox.com/forum.jspa?forumID=329
Figure 1.5: MVC: the Zend Framework way
The Zend_Controller family of classes provides a front controller design which dispatches requests to
controller actions (also known as commands) so that all processing is centralized. As you??™d expect from a fully
featured system, the controller supports plug-ins at all levels of the process and has built in flex-points to
enable you to change specific parts of the behavior without having to do too much work.
The view template system is called Zend_View which provides a PHP based template system. This means
that, unlike Smarty or PHPTAL, all the view templates are written in PHP. Zend_View provides a helper plugin
system to allow for creation of reusable display code. It is designed to allow for overriding for specific
requirements, or even replacing entirely with another template system such as Smarty.
Zend_Db_Table implements a table row gateway pattern to form the basis of the model within the MVC
system.
Pages:
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27