CodeIgniter Forums
Problem with URI class - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Problem with URI class (/showthread.php?tid=23791)



Problem with URI class - El Forum - 10-21-2009

[eluser]darkwalker[/eluser]
Hai All,

I have some trouble here, i build my application in wiindows and no have any errors, then when i try to move the application to the linux server, i have some error in here, like this..

Unable to load the requested class: uri

I load the uri library in constructur of my class, in windows there is no problem, but in linux show that errors..

anybody can help me???


Problem with URI class - El Forum - 10-21-2009

[eluser]InsiteFX[/eluser]
Did you change your system and application directories in index.php to point to the directories
Also apllication/config/config.phph -> base_url ?

Enjoy
InsiteFX


Problem with URI class - El Forum - 10-21-2009

[eluser]wiredesignz[/eluser]
@InsiteFX, WTF!

@darkwalker, Don't load the uri library, it is loaded by CodeIgniter bootstrap already.


Problem with URI class - El Forum - 10-21-2009

[eluser]darkwalker[/eluser]
[quote author="InsiteFX" date="1256193516"]Did you change your system and application directories in index.php to point to the directories
Also apllication/config/config.phph -> base_url ?

Enjoy
InsiteFX[/quote]

yes of course...


Problem with URI class - El Forum - 10-21-2009

[eluser]darkwalker[/eluser]
[quote author="wiredesignz" date="1256193674"]@InsiteFX, WTF!

@darkwalker, Don't load the uri library, it is loaded by CodeIgniter bootstrap already.[/quote]

so the URI class is load automated ?


Problem with URI class - El Forum - 10-21-2009

[eluser]khagendra[/eluser]
The URI class is initialized automatically by the system so there is no need to do it manually.

please, check your base_url setting in system/application/config/cconfig.php. and set properly this variable
Code:
$config['base_url']="http://example.com/";



Problem with URI class - El Forum - 10-22-2009

[eluser]darkwalker[/eluser]
Ok! my problem solved..when i try erase the load librari URI the error not show again.... thanks all.. :cheese:


Problem with URI class - El Forum - 02-16-2011

[eluser]lduarte[/eluser]
Can you tell me exactly what you done? because i have the same problem now... Thanky you