Welcome Guest, Not a member yet? Register   Sign In
Multiple arguments for method on controller in sub-directory?
#1

[eluser]Unknown[/eluser]
I can't find specific reference to it anywhere, but some experimentation has shown me that URI's routed to controllers in a subdirectory only pass a single parameter.

for example:

For
/controller/method/param_1/param_2/param_3/…/param_n

All parameters are available to controller::method(param_1, param_2, etc) as arguments

However, for
/subdir/controller/method/param_1/param_2/param_3/…

only param_1 is available as an argument to subdir/controller(param_1,param_2,etc).

Can anyone confirm this limitation? Also are their known workarounds? A custom router class?

Thanks

#2

[eluser]Unknown[/eluser]
ok, I am mistaken.

I was overriding a method, and not catching on all the arguments in my child classes.

Silly mistake, the sub directory controllers accept arguments the same as those at the root of the controller directory. .




Theme © iAndrew 2016 - Forum software by © MyBB