Welcome Guest, Not a member yet? Register   Sign In
Do I use POST variables or routed vars in URL?
#4

[eluser]luismartin[/eluser]
[quote author="Andreas Bergström" date="1338971681"]Definitely search parameters in URL for so many reasons. Just use associative parameters and simply leave out unused filters, then parse it with uri->uri_to_assoc(n).[/quote]

Hello Andreas, thanks for your reply!

Seems that I missed part of the documentation and I didn't follow to the letter CI's convention for a URI structure. Instead of doing this:
controller/method/key1/value1/key2/value2/key3/value3

I directly did this:

controller/method/value1/value2/value3

thus forcing all the parameters to have a fixed position, even when some of them were not defined, in which case I had to add a 0 (no self-explanatory at all) to those segments. :-S

Thanks for pointing me to the right direction! :-)


Messages In This Thread
Do I use POST variables or routed vars in URL? - by El Forum - 06-05-2012, 05:49 AM
Do I use POST variables or routed vars in URL? - by El Forum - 06-05-2012, 11:01 PM
Do I use POST variables or routed vars in URL? - by El Forum - 06-06-2012, 01:34 AM
Do I use POST variables or routed vars in URL? - by El Forum - 06-06-2012, 04:53 AM
Do I use POST variables or routed vars in URL? - by El Forum - 06-06-2012, 05:07 AM
Do I use POST variables or routed vars in URL? - by El Forum - 06-06-2012, 05:25 AM
Do I use POST variables or routed vars in URL? - by El Forum - 06-06-2012, 06:27 AM
Do I use POST variables or routed vars in URL? - by El Forum - 06-06-2012, 06:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB