Deadpikle / yamf-php

YAMF (Yet Another MVC Framework) is a small PHP MVC framework designed to let you start using the MVC paradigm quickly without a lot of setup work
MIT License
2 stars 0 forks source link

Refactor router to allow for custom routing #3

Open Deadpikle opened 6 years ago

Deadpikle commented 6 years ago

Feature Request Description

Right now, a user can't add logic to the routing system without overriding the YAMF router.php file. We should make this extendable somehow.

Feature Request Solution

Make the router object oriented (might cause problems with how we are currently using require)? Add a custom function that can be called by the router to do custom logic?

Deadpikle commented 5 years ago

The router is now object oriented. Technically, the user could tweak init.php to do their own routing, but we should still think about making this easier for the user. In addition, the views/static views folders (and file extension names) are configurable, so that makes things easier on the user, too.