Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Custom routes for modules.
  • Hey ! i have a module "lists" and urls look likes http://localhost/lists/7864/edit.
    i use custom routes config in my module. '(:slug)/edit' => 'lists/edit', '(:slug)/edit' => 'lists/reports, etc... I wish I had a URL like http://localhost/list/7864/edit (No "S" on lists) Can i specified an "Alias" or custom main route for my module ? (Modify the first part of the url) Ps : Sorry for my (very ?) bad english.
    ps2 : FuelPHP is very Awesome !!! Thanks !
  • Routes in a module routes.php all have to start with the module name (on the left hand side). If not the module loader will add it. All other routes should be defined in your app/config/routes.php.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion