Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Zend will first send all your requests to FrontController which is available at Zend/Controller/Front.php. FrontController will inject the Http request into the controller here is the code where it is happening</p> <pre><code> /** * Instantiate default request object (HTTP version) if none provided */ if (null !== $request) { $this-&gt;setRequest($request); } elseif ((null === $request) &amp;&amp; (null === ($request = $this-&gt;getRequest()))) { require_once 'Zend/Controller/Request/Http.php'; $request = new Zend_Controller_Request_Http(); $this-&gt;setRequest($request); } </code></pre> <blockquote> <p>The purpose of frontcontroller is to <strong>initialize the request environment</strong>, route the incoming request, and then dispatch any discovered actions; it aggregates any responses and returns them when the process is complete.</p> </blockquote> <p>More about the FrontController <a href="http://framework.zend.com/manual/en/zend.controller.front.html" rel="nofollow">here</a></p> <p>To further answer your query </p> <pre><code>/** * Return the Request object * * @return Zend_Controller_Request_Abstract */ public function getRequest() { return $this-&gt;_request; } </code></pre> <p>this is what you will in Zend/Controller/Action.php - here comment says Zend_Controller_Request_Abstract '<strong>is-a</strong>' return type. I highlighted 'is-a' because it can return any class which 'is-a' Zend_Controller_Request_Abstract. To more about is-a check this <a href="http://en.wikipedia.org/wiki/Is-a" rel="nofollow">wikipedia</a> page</p> <blockquote> <p>"In knowledge representation, object-oriented programming and design, is-a or is_a or is a (subsumption) is a relationship where one class D is a subclass of another class B (and so B is a superclass of D)."</p> </blockquote>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload