Welcome Guest, Not a member yet? Register   Sign In
How does uri_to_array get the info from the URL?
#1

[eluser]jhyland[/eluser]
So basically, I need to be able to pass null values through the URI...

site.com/module/class/var1/val1/var2//var3/val3/

I need that to basically be: array('var1' => 'val1','var2' => '', 'var3' => 'val3');

So the // needs to be either empty or null.

I couldnt find the .htaccess, so where does it pull the data from? I can edit the php on my own, I just cant find where it pulls it from
#2

[eluser]InsiteFX[/eluser]
Look at the ./system/helpers/url_helper.php
#3

[eluser]jhyland[/eluser]
Not in there, thats for making links and mailto links and anchors and whatnot..
#4

[eluser]Aken[/eluser]
/system/core/URI.php
#5

[eluser]jhyland[/eluser]
[quote author="Aken" date="1344728774"]/system/core/URI.php[/quote]

yeah... somewhere in there... any idea which function at least? I looked a few times and couldnt find it.

Thanks
#6

[eluser]jhyland[/eluser]
Found it...
_explode_segments()




Theme © iAndrew 2016 - Forum software by © MyBB