Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Can we define route like larabel Routing?
  • Hi there,

    Is it possible to define route like follwoing?

    For example, we have following controller and action.

      public function index($id){}

    But, we want to different path like following.


    If we can, can you show me example of this?


  • HarroHarro
    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.
  • Thanks for quick reply.
    That is what I thought :)

Howdy, Stranger!

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

In this Discussion