Removing section from URI then continuing to controller/method

#11
[eluser]MikePearce[/eluser]
It does, but it returns it with the key:value pair, so calling a method that can accept a var, without passing it one, causes an error as it thinks the key:value pair is the var.

#12
[eluser]RIVO10[/eluser]
hello...
I don't know if it's only an example, but you can't use the ":" char, because it's part of the URI description.

protocol :// [ user [: password ] @ ] hostname . tld [ : port ]

When using a web browser, the default protocol is "http" and the default port is "80"
Then, if you write an URI with "key:value" at the end, the value will be used as the destination port.

#13
[eluser]MikePearce[/eluser]
Good point! I'm using "." and "|" now!

#14
[eluser]BigErnMcCracken[/eluser]
I'm having a similar issue where I would like to use a pre-controller hook to add variables onto the URI. So if a user clicks on a link with a URL:
Code:
http://site.com/controller/method
I would want the pre-controller to change it to be
Code:
http://site.com/controller/method/parm1/parm2
and then continue with the routing.

Does anyone know if this is possible?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.