Zend_Controller_Front is the foundation and it processes all requests received by the application and
delegates that actual work to action controllers.
Request
The request is encapsulated within an instance of Zend_Controller_Request_Http which provides access to
the entire HTTP request environment. What is a request environment though? It is all the variables received by
the application from outside the application along with relevant controller parameters such as the controller
and action router variables
The HTTP request environment contains all the super globals ($_GET, $_POST, $_COOKIE, $_SERVER
and $_ENV) along with the base path to the application. The router also places the module, controller and
Licensed to Menshu You
Please post comments or corrections to the Author Online forum at
http://www.manning-sandbox.com/forum.jspa?forumID=329
action names into the request object once it has worked them out. Zend_Controller_Request_Http provides the
function getParam() to allow the application to collect the request variables and so the rest of the application is
protected from a change in environment. For example, a command line request environment wouldn??™t contain
the HTTP specific items, but would include the command line arguments passed to the script.
Pages:
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59