In PHP, what are the different design patterns to implement OO controllers as opposed to procedural controllers?
- by Ryan
For example, it's very straightforward to have an index.php controller be a procedural script like so:
<?php
//include classes and functions
//get some data from the database
//and/or process a form submission
//render HTML using your template system
?>
Then I can just navigate to http://mysite.com/index.php and the above procedural…