I am running a fuelphp app with a route that looks like this:
And then I have a method on my controller like this:
public function get_my_method($firstname, $lastname);
Unfortunately, what happens is the
$firstname variable contains the
:lastname passed in from the route, and the the
$lastname variable contains the
:firstname passed in from the route.
I've tried switching around the
$1 from the routes file.
I'd like to keep the endpoint url untouched - I'd just like to reverse the argument order coming in to the controller method.
Anyone know how to accomplish this?