Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Routing issue
  • Hi Guys!! I need to create url like domain.com/username the routes below works fine except the admin route is a module. domain.com/admin works fine but domain.com/admin/process redirects to profile (':any' => 'profile/$1'))
    return array(
        '_root_' => 'welcome/index', // The default route
        'users' => 'users',
        'users/(:any)' => 'users/$1',
        'admin' => 'admin',
        'admin/(:any)' => 'admin/$1',
        'messages' => 'messages',
        'messages/(:any)' => 'messages/$1',
        'account/(:any)' => 'account/$1',
        ':any' => 'profile/$1',
        '_404_' => 'welcome/404', // The main 404 route
    );
    

    How do i fix this? Many thanks.
  • ok, i've removed custom routes from the config and kept the default but still having problem, domain.com/admin works but domain.com/admin/process throws 404 error.
    return array(
        '_root_' => 'welcome/index', // The default route
        '_404_' => 'welcome/404', // The main 404 route
    );
    

    controller http://scrp.at/XT
  • *FIXED* Downloaded the latest version from the dev. Issue https://github.com/fuel/core/issues/82

Howdy, Stranger!

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

In this Discussion