Welcome Guest, Not a member yet? Register   Sign In
Pagination - Need Help
#3

[eluser]$ilovephp[/eluser]
Thanks for the reply pickupman. I just figured out the problem. it is not about the segment since i have 3 as defult segment in my cofig file.

the page function that i created previously was accepting one argument, that is

Code:
function page($page)
{
...
}

and i used the $page as offset without minding that the third segment could be empty ... so i revised the function with:
Code:
function page()
{
if(!isset($this->uri->segment(3)))
$page = 1;
...
}

yet, thank you.


Messages In This Thread
Pagination - Need Help - by El Forum - 04-19-2010, 08:19 PM
Pagination - Need Help - by El Forum - 04-19-2010, 09:40 PM
Pagination - Need Help - by El Forum - 04-19-2010, 09:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB