URI issue in 1.7 |
[eluser]PHP Four[/eluser]
Hi Guys, I don't know how I'm actually getting this issue, but in my controller, none of the URI library functions are working: For an URL like this: http://127.0.0.1/jm/home/test/abc/123, I get the following result: Code: echo $this->uri->uri_string(); -> Blank string I have the URI library loaded in autoload, my .htaccess is properly set: Code: <IfModule mod_rewrite.c> Everything was working in 1.6.3, don't know why it's not in 1.7. Anybody else encountered this strange problem? Thanks Emran
[eluser]Pascal Kriete[/eluser]
Does it run the proper controller? Or are you stuck on the homepage?
[eluser]PHP Four[/eluser]
@Lab Technician: Thanks for your reply, I actually found the cause (after losing a few crazy hours and a commitment) Actually 1.7 doesn't have much to do with the problem. If you put the URI library in the autoload.php like this: Code: $autoload['libraries'] = array('database', 'session', 'URI'); ...then none of the functions from the URI library will work !! This applies for 1.6.3 and 1.7 (maybe with earlier versions as well, dunno). This behavior is actually not expected, as libraries should be loaded once and once only. Thanks Emran
[eluser]Pascal Kriete[/eluser]
The user guide is pretty clear that you don't have to load it manually, but I agree that it shouldn't make a difference. I'll look into why it happens and make a feature request. Glad you sorted it out. ps. For usernames, look a little higher ![]()
[eluser]PHP Four[/eluser]
@inparo: Heh heh, just noticed the username. Thanks. |
Welcome Guest, Not a member yet? Register Sign In |