Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
How to route from controller to _root_
eliasleyton
January 2014
I have this controller:
example.com/store/name
but I need to redirect to:
example.com/name
how?
Harro
January 2014
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?
eliasleyton
January 2014
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
Harro
January 2014
If there is nothing else that has a single segment URI, you can define a route like
'(:segment)' => 'store/view/$1',
eliasleyton
January 2014
Thank you ! ! !
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
eliasleyton
January 2014
Harro
January 2014