Welcome Guest, Not a member yet? Register   Sign In
uri_to_assoc not working
#1

[eluser]jaswinder_rana[/eluser]
Hi:

I am using $this->uri->uri_to_assoc() but its not returning anything.

I need to get this rather than per segment because the order might change in my app.

Am I doing something wrong?

Please note that the uri class is included so its not error. It just returns empty Array (printed using print_r).

thanks
#2

[eluser]jaswinder_rana[/eluser]
Its strange but its working now. I removed 'uri' class from library list in autoload.php.

I am not sure why and I am not loading it anywhere else either. Anyone know the reason?

thanks
#3

[eluser]erik.brannstrom[/eluser]
The URI class is actually automatically loaded by the system, without you having to specify it, since it is so commonly used.
#4

[eluser]jaswinder_rana[/eluser]
Thanks. That explains it.

But is this a bug if I add it accidentally in autoload.php and it stops working?




Theme © iAndrew 2016 - Forum software by © MyBB