fuelphp

Fuelphp : Knowing the name of the current route


I have named all my routes. Is there any way to know the name of the route that was selected for the current request?

'a/b/(:segment)/(:segment)' => array('a/b/$2/index/$1', 'name' => 'test'),

The Route object does not seem to contain that information.


Solution

  • Added to 1.8/develop, and will be part of the 1.7.2 release: https://github.com/fuel/core/commit/30ba478c040efc41907c13e6e9402d824fa87242

    Next time, use the FuelPHP forum, IRC, or issue a feature request. You'll get a faster response.