kbanman/squire — Issue #3: Where's the /admin/ in the URL?
Author: ShonM
Created: 2011-12-01 20:51:30+00:00
State: open

I see most of the module controllers here act like an administrative interface, yet everything is path/to/site/module. What about path/to/site/admin/module? More like you would see in the wild.

I had this figured out with a custom router() function that I was using to form a sort-of [ActiveAdmin](http://activeadmin.info/) that you can [see here](http://scrp.at/aso).

Kind of basic (should be taking more advantage of Fuel) but it uses Fuel's Event class to allow modules to talk to each other freely. Most importantly though, **it maps every /module/classes/controller/admin/controller.php to site.com/admin/module/controller.**

I know I had a hard time wrapping my head around this one, hopefully you > me :)