5.
MVC Cont… <ul><li>Controller <-> View Controller and View can interact </li></ul><ul><li>Controller <-> Model Controller can pull data from the model for decisioning, or push data to the model </li></ul><ul><li>View <- Model View can access the model to retrieve data, but not write to it. </li></ul>

16.
Action Controllers <ul><li>action controllers contain application workflow, do mapping requests to the appropriate models and views. </li></ul><ul><li>action controller should have one or more methods ending in “Action” </li></ul><ul><li> methods may then be requested via the web </li></ul><ul><li>Zend Framework URLs follow the schema /controller/action </li></ul><ul><li>&quot;controller&quot; maps to the action controller name (minus the &quot;Controller&quot; suffix) and &quot;action&quot; maps to an action method (minus the &quot;Action&quot; suffix) </li></ul><ul><li>need an IndexController, which is a fallback controller and which also serves the home page of the site </li></ul><ul><li>ErrorController, which is used to indicate things such as HTTP 404 errors (controller or action not found) and HTTP 500 errors (application errors) </li></ul>

20.
Views <ul><li>Written in plain old PHP </li></ul><ul><li>View scripts are placed in application/views/scripts/ </li></ul><ul><li>They are further categorized using the controller names </li></ul><ul><li>We have an IndexController and an ErrorController </li></ul><ul><li>Thus we have corresponding index/ and error/ </li></ul><ul><li>subdirectories within view scripts directory </li></ul><ul><li>We thus have the view scripts index/index.phtml </li></ul><ul><li>and error/error.phtml </li></ul><ul><li>The following is what we install by default for the index/index.phtml view script: </li></ul>

27.
Create a virtual host(Optional) Cont.. <ul><li> DocumentRoot setting specifies the public subdirectory of project; this means that only files under that directory can ever be served directly by the server </li></ul><ul><li>AllowOverride, Order, and Allow directives; these are to allow to use htacess files within project </li></ul><ul><li>SetEnv directive is setting an environment variable for virtual host; this variable will be picked up in the index.php and used to set the APPLICATION_ENV constant for our Zend Framework application </li></ul><ul><li>Add an entry in hosts file located at : On *nix-like systems, this is usually /etc/hosts; </li></ul><ul><li>On windows : C:WINDOWSsystem32driversetc </li></ul><ul><li>127.0.0.1 trainingtestproject.local </li></ul>