-
Notifications
You must be signed in to change notification settings - Fork 1
a very simple controller for php applications
License
wadoon/php-microcontroller
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
PHP MicroController ===================================================== Abstract ----------------------------------------------------- MC is a very thin and small request controller for php. Working ----------------------------------------------------- Let's take an example request http://example.com/index.php/mod/fun/a/B/c. The controller determines the path after index.php and tries to find the correct php files. 0) calls invidual callback handler reqrewrite 1) includes APP_DIR/mod.php 2) tries to instanciate ControllerMod class (default contructor) 3) callback initctrl with the instance is called 4) method fun is invoked on the controller object with the arguments fun(a,B,c). One note, you can use punctation for making an controller hierarchie, e.g. index.php/abc.def.ghi/foo will include abc/def/ghi.php and call new GhiController().foo(). Helper -------------------------------------------------------------------------------- Website: http://fh-trier.de/~weigla/index.php?id=mc Author: Alexander Weigl <alexweigl@gmail.com>
About
a very simple controller for php applications
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published