08-09-2012, 03:31 PM
[eluser]bibiki[/eluser]
Hey there,
I built a few methods that use the pagination class. I have one methods where pagination works perfectly. So, I believe I know what I am doing.
However, I have this other method where pagination won't work. The only suspect is that I am passing this other method two parameters, not one.
So, the first time the method is accessed, if I want userid 3's images to view, the url should be
http://localhost/mik/index.php/restricted/images/3/
now, when I want to view the next set of images (assuming 3 are viewed per page), the url should be
http://localhost/mik/index.php/restricted/images/3/3
and this link should be accessed by the link that looks like >=, however, the links generated by $this->pagination->create_links() are all messed up, and >= won't increase my $page variable correctly.
any idea why?
thanks.
Hey there,
I built a few methods that use the pagination class. I have one methods where pagination works perfectly. So, I believe I know what I am doing.
However, I have this other method where pagination won't work. The only suspect is that I am passing this other method two parameters, not one.
Code:
function images($udi, $page = 0)
$config['base_url'] = "http://localhost/mik/index.php/restricted/images/$uid/";
So, the first time the method is accessed, if I want userid 3's images to view, the url should be
http://localhost/mik/index.php/restricted/images/3/
now, when I want to view the next set of images (assuming 3 are viewed per page), the url should be
http://localhost/mik/index.php/restricted/images/3/3
and this link should be accessed by the link that looks like >=, however, the links generated by $this->pagination->create_links() are all messed up, and >= won't increase my $page variable correctly.
any idea why?
thanks.