Saw this
http://www.recessframework.org/blog
thought it looked cool, so I wrote up a quick hack to implement the basic idea
http://istillseeglaciers.com/MY_Router.phps
Issues:
Fantastically horrible hack to implement this, I ended up changing a couple lines in CodeIgniter.php despite my best efforts. I think I could fix this if I used a subprocess to build the routes, but I haven’t done that yet.
Todo:
Add in caching to store routes cleaned from the controllers.
Unhaxor the CI
Add in dynamic context/behavior rules:
ex: `@isAjax` to tell the router that if a call to a method doesn’t present itself as an ajax call then abort it.
Why:
Because its cool and I kind of liked the idea of embedding routes inside of my controllers instead of in a centralized config file.
