Is there any way in php.info (or other config file) for me to indicate a script to be run every single time PHP is invoked?
I'm interested in mapping HTTP requests for a particular page to a Controller class representing that page, similar to how a lot of MVC framework (like CI) work.
For instance, the user clicks a link that should map to /webroot/some/url/widget.php, but rather the /webroot/app/mvc/controllers/WidgetController.php class is what gets invoked instead.
To do this, I figure MVC framework like CI have figured out a way to "hook" the PHP Runtime by running a script that runs and says "oh, the request is for widget.php, but we want to actually run the WidgetController.php object."
Any ideas/thoughts/suggestions/concerns?
Thanks!