DEV Community

Discussion on: Building a PHP Framework: Part 3 - Time For Action

boianivanov profile image
Boian Ivanov

Going that route, to automatically load controllrrs/methods/resources or whatever, you can do what OpenCart does and depending on the URL load a specific controller.
For ex. you have the route "/foo/bar/baz" that will then load the controller "ControllerFooBar" and load the public method baz.
This way you have that part ADR, but you can still have an MVC.