Skip to content

Example of a Front Controller pattern usage in PHP

License

Notifications You must be signed in to change notification settings

faisal2410/php-front-controller

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-front-controller

Example of a Front Controller pattern usage in PHP

Usage:

Controllers, actions and params matches URL segments: www.example.com/mycontroller/myaction

The front controller will look for a class named mycontroller and a function called myaction. The class_autoloader.php will be responsible for finding and including class files.

Simple create controllers namespaced inside a folder with the same name of the namespace. Example:

controller (dir) --Controller\MyController.php

model (dir) --Model\MyModel.php

About

Example of a Front Controller pattern usage in PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 95.2%
  • ApacheConf 4.8%