Prev | Current Page 32 | Next

Rob Allen, Nick Lo, and Steven Brown

"Zend Framework in Action"

For web applications, the controller code is
the code that works out what to actually run in response to the web request. For Zend Framework applications,
the controller system is based on the design pattern known as Front Controller which uses a handler
(Zend_Controller_Front) and action commands (Zend_Controller_Action) which work together in tandem.
The front controller handler accepts all server requests and runs the correct action function within the action
command. This process is known as routing and dispatching. The action class is responsible for a group of
related action functions which perform the ???real??? work required from the request. Within the Controller of the
Zend Framework, it is possible to have a single request result in the dispatch of multiple actions.
2.2 The Anatomy of a Zend Framework Application
A typical Zend Framework application has many directories in it. This helps to ensure that the different parts
of the application are separated. The top level directory structure is shown in Figure 2.2.
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 2.2: Directory layout for a standard Zend Framework application
There are four top level directories within the application??™s folder:
1.


Pages:
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
zakłady bukmacherskie quady bosten.pl House Extension London mobilna suwnica hydrauliczna Poznań