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
Can we define route like larabel Routing?
soseki
September 2020
Hi there,
Is it possible to define route like follwoing?
For example, we have following controller and action.
Controller_User
{
public function index($id){}
}
But, we want to different path like following.
user/performance/11
If we can, can you show me example of this?
Regards,
Harro
September 2020
Accepted Answer
Assuming that you mean "action_index($id)":
'user/perrformance' => 'user/index',
You can't route to methods that aren't prefixed with "action_", that is by design.
soseki
September 2020
Thanks for quick reply.
That is what I thought
:)
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,086
General
↳ General
3,362
↳ 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
Harro
September 2020
soseki
September 2020