PHP Front Controller with MVC
I am trying to delve into MVC with Front Controller Design. I want to invoke my entire application by using one line, for example in index.php: require_once(myclass.php); $output = new myClass(); I would love to get rid of the require_once line, but I don't see how I could load my class without including it? Anyway my main question would be how to load my various controllers and models and views etc using a one front end class. So far I have come up with: class myClass { private $name; public $root = $_SERVER['DOCUMENT_ROOT']; private $route = array("Controller" => "", "Model" => "", "View" =>