You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
api/user/1 ==> 3 // I don't want the 3 to be shown, the parameter is not set
api/user/1/json ==> '/json'
The problem comes when I try to parse the "type" parameter, I must check it vs the value 3, but in other routes I will have it as the second parameter so....
How can I accomplish this? Maybe there is another way to do it?
Also, notice that the "api" value is setted in a strange way:
Using named parameters on the standard router I get a default value equal to the position, when it's not defined:
using, on the controller:
The problem comes when I try to parse the "type" parameter, I must check it vs the value 3, but in other routes I will have it as the second parameter so....
How can I accomplish this? Maybe there is another way to do it?
Also, notice that the "api" value is setted in a strange way:
I did a discussion post some time ago:
http://forum.phalconphp.com/discussion/6674/router-default-for-named-parameters-at-the-end-of-the-route#C18867
The text was updated successfully, but these errors were encountered: