Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
How to route from controller to _root_
  •  I have this controller:

    example.com/store/name

    but I need to redirect to:

    example.com/name

    how?
  • Can you be more specific?

    You have a controller called Controller_Store, with an action action_name(), and you want to route "example.com/name" to it?
  • Sorry, yes Store is a controller with the action view

    :
    example.com/store/view/store-name

    en this URL I can view the store details

    to

    example.com/store-name


  • If there is nothing else that has a single segment URI, you can define a route like

    '(:segment)' => 'store/view/$1',
  • Thank you ! ! !

Howdy, Stranger!

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

In this Discussion