Welcome Guest, Not a member yet? Register   Sign In
Pass url parts as array to controller
#1

[eluser]Unknown[/eluser]
Best,

I was wondering if it is possible to pass the whole url in array form to the called controller method.

so for example if I call
Code:
/controller/action/param1/param2/param3
I don't wish to catch those by creating

Code:
public function action($param1, $param2, $param3)

But rather

Code:
public function action($params)

This because I do not know in advance how many parameters will be passed through.

Thanks!
Pj


Messages In This Thread
Pass url parts as array to controller - by El Forum - 06-23-2012, 05:04 AM
Pass url parts as array to controller - by El Forum - 06-23-2012, 05:24 AM
Pass url parts as array to controller - by El Forum - 06-23-2012, 05:27 AM
Pass url parts as array to controller - by El Forum - 06-23-2012, 05:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB