I'm wondering if a URL system like the one Magento uses (store coffee as the first component of the URI) is possible to do using FuelPHP...
Main things I need to do is switch themes depending on the code but ignore it when it comes to parsing the URI... but have a default in case an unknown or no code is passed in the URI.
I don't know if I explained it correctly, so ask me to elaborate if this does not suffice.
You can either use a route to move it to the back of the URI and make it a segment parameter, or define a closure as route, that will get the store code out, and does an HMVC request to the remainder of the URI.
Looking at this after a few days... I realize this is fine if you know the URL code beforehand, but what if I have to check the code for validity using the database before I can do the routing?
If you use database backed routing, the best thing to do is add a generic route that routes all requests to your "lookup" controller, and have that do an HMVC request to the destination found (or throw an HttpNotFoundException if not). It will be more flexible then using a closure (although you should be able to do the same there, it will just become messy with lots of code).