• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

URL's with multiple parameters

Garani

Active member
#1
Sorry if I missed a message on the matter, but couldn't quite find anything.

Need:
I need to call a page/module that requests over GET several parameters.

Issue:
router->resolveAction* only works with the following schemas "moduleName/paramName.digit/actionName" and "moduleName/paramName/string/actionName"

But I need to know a number of parameters. So either I write a whole new route code, very much like Jaxel has done, or I get dirty with base64_encode, which is a whole new challenge, and looks ugly and can't be properly worked on in the templates!

Anyone already solved the issue?
 

Garani

Active member
#3
I wanted to use the Xenforo methods for sanity checks. For those reasons I wanted to re-use the routing system.

For the time I am base64ing the actual paramentes and using a simple string. To work against tampering I'll actually crypt it vs some key. Troublesome and CPU intensive, but either that or I rewrite all my code to do sanity checks. :(