MemoryRefresh!

Patterns / Front   Front



Questions Answers 0%

Pages   0 from 91
Questions   0 from 142

Reset


With Front Controller Pattern a single component is responsible for handling all requests to other parts of an application.
# .htaccess RewriteEngine on RewriteRule !.(js|ico|gif|jpg|png|css|html)$ html/index.php # index.php <?php $fc = Zend_Controller_Front::getInstance(); // see Singleton Pattern for class Zend_Controller_Front ... $fc->setRouter(); $fc->setView(); ... $fc->dispatch(); // --- Look Here --- // # routes.ini ;HOMEPAGE routes.homepage.route = "" routes.homepage.defaults.module = "default" routes.homepage.defaults.controller = "frontend" routes.homepage.defaults.action = "index" ;ADMIN routes.admin.route = "admin" routes.admin.defaults.module = "default" routes.admin.defaults.controller = "admin" routes.admin.defaults.action = "index"

Related Pages

Observer
Singleton
Front
Factory
Registry
Mvc
Active record


0% 100%
 
 
0 pages 91 pages
1) Front Controller Pattern








With Front Controller Pattern a single component is responsible for handling all requests to other parts of an application.
# .htaccess RewriteEngine on RewriteRule !.(js|ico|gif|jpg|png|css|html)$ html/index.php # index.php <?php $fc = Zend_Controller_Front::getInstance(); // see Singleton Pattern for class Zend_Controller_Front ... $fc->setRouter(); $fc->setView(); ... $fc->dispatch(); // --- Look Here --- // # routes.ini ;HOMEPAGE routes.homepage.route = "" routes.homepage.defaults.module = "default" routes.homepage.defaults.controller = "frontend" routes.homepage.defaults.action = "index" ;ADMIN routes.admin.route = "admin" routes.admin.defaults.module = "default" routes.admin.defaults.controller = "admin" routes.admin.defaults.action = "index"

References









Programming

Php
   
Regex
   
MySQL
   
Css
   
jQuery
   
Git
   


References