Welcome Guest, Not a member yet? Register   Sign In
Accepting Infinite Values in URL
#1

[eluser]Unknown[/eluser]
I'm currently working on an application where I'd like users to be able to filter out via a variety of facets.

I'm hoping to be able to set up a flexible URL structure such as

http://app/controller/foo/category/categ...gB/page/4/ ... etc

Rather than having function foo($option1,$option2.... $option3000) - any ideas on how to handle this better?

func_get_args would work in a normal PHP script, but it doesnt seem to be working in this case.

Thanks!
#2

[eluser]JHackamack[/eluser]
In your controller rather than using $option1, $option2 why not use
Code:
$url = $this->uri->urI_to_assoc();

Then you should be able to use func_get_args
#3

[eluser]Unknown[/eluser]
Thanks!




Theme © iAndrew 2016 - Forum software by © MyBB