Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Router :: route wrapper
  • Hi everyone,

    I need know how show url that
    where settings, really execute admin/user/edit/1
    and 1 is CurrentUserID.

    How i need define the route propperly and how i make de call?

    Thank for the time.
  • HarroHarro
    Accepted Answer
    You can't without quite a bit of code (to pick up that user id) in your route.php, which is something you would want to avoid.

    Instead, route to "admin/user/edit" without the number, define the method as "action_edit($id = null)", and then in the action, if no id is passed ($id == null), do a current user id lookup. 

Howdy, Stranger!

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

In this Discussion