CodeIgniter Forums
unable to load uri - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: unable to load uri (/showthread.php?tid=17649)



unable to load uri - El Forum - 04-11-2009

[eluser]kalpesh[/eluser]
hi,
I am getting strange error in my application.
I try to load uri library but it is giving error like this:
Code:
An Error Was Encountered
Unable to load the requested class: uri

It works in localhost perfectly but on shared web hosting it is giving me this error
Please help me
Thanks in advance.


unable to load uri - El Forum - 04-11-2009

[eluser]pistolPete[/eluser]
Read the user guide: user_guide/libraries/uri.html

Quote:Note: This class is initialized automatically by the system so there is no need to do it manually.



unable to load uri - El Forum - 04-11-2009

[eluser]kalpesh[/eluser]
thanks i solved the error.
But when i try to work on with pagination.
It gives me strange result when page links shown.
If there are 40 records in page and 5 records in each page then it has to show like this
1 2 3 4 5 6 7 8 > Last>
But it is showing
1 2 3 > Last>

and also when i click on links it always show current page 1 but the contents on page changes.


unable to load uri - El Forum - 05-02-2009

[eluser]valajbeg[/eluser]
[quote author="kalpesh" date="1239467734"]thanks i solved the error.
But when i try to work on with pagination.
It gives me strange result when page links shown.
If there are 40 records in page and 5 records in each page then it has to show like this
1 2 3 4 5 6 7 8 > Last>
But it is showing
1 2 3 > Last>

and also when i click on links it always show current page 1 but the contents on page changes.[/quote]

i have same problem

it seems that uri library doesn't load automatically and i can't load it explicitly.

What you did to solve this problem?


unable to load uri - El Forum - 05-02-2009

[eluser]kalpesh[/eluser]
uri library load automatically.
You doesn't have to do anything.
Just use it like this :
$this->uri->segment(3);