Routes in an Advanced Module

edited May 2012 in Modules
Simple question that I'm scratching my head over. I have a Store advanced module which contains a Helmets model. The helmets model is accessible currently in Fuel at /fuel/helmets. I want it to be accessible at /fuel/store/helmets. Here is my route configuration in store_routes.php, why isn't this working?

$route[FUEL_ROUTE . 'store/helmets/(.*)'] = FUEL_ROUTE . 'helmets/$1';

Erik

Comments

  • edited 9:37AM
    You'd need your advanced folder name in there:

    $route[FUEL_ROUTE . 'store/helmets/(.*)'] = STORE_FOLDER . 'helmets/$1';

    Assuming you've followed the config/constants.php convention from the other modules.
Sign In or Register to comment.