CodeIgniter Forums
pagination problem - 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: pagination problem (/showthread.php?tid=56500)



pagination problem - El Forum - 12-24-2012

[eluser]sniperscope[/eluser]
Hello
Recently i have a problem with pagination. I am following Jeffrey Way's tutorials at http://net.tutsplus.com/tutorials/php/codeigniter-from-scratch-day-7-pagination/
However, i have problem with pagination on page images.
Pagination works fine at page but some images disappear(menu navigation images) at page two or so.

The prist page of pagination is
example.com/index.php/sample so there is no problem all pagination links are fine. Unfortunately
example.com/index.php/sample/index/10 works okay but images are gone.

So, my controller is as follow;

Code:
$this->load->library('pagination');
$config['base_url'] = "http://example.com/index.php/sample";
$config['total_rows'] = $this->db->get('mytable')->num_rows();
$config['per_page'] = 10;
$config['num_links'] = 20;

$this->pagination->initialize($config);
$this->load->model('my_model');

$p = (!$this->uri->segment(2)) ? 0 : $this->uri->segment(2);
$data['records'] = $this->my_model->testimonals($config['per_page'], $p);
$this->load->view('sample/index', $data);

In there how can i fix this and how can i get rid of index at sample/index/10

Regards


pagination problem - El Forum - 12-25-2012

[eluser]sniperscope[/eluser]
Is there no one else to help?


pagination problem - El Forum - 12-25-2012

[eluser]sniperscope[/eluser]
Never mind, i solved it.


pagination problem - El Forum - 12-26-2012

[eluser]pickupman[/eluser]
Glad you were able to solve the issue yourself. Keep in mind you were posting this on Christmas, so I would imagine there wouldn't be many around to help.


pagination problem - El Forum - 12-26-2012

[eluser]sniperscope[/eluser]
[quote author="pickupman" date="1356534524"]Glad you were able to solve the issue yourself. Keep in mind you were posting this on Christmas, so I would imagine there wouldn't be many around to help.[/quote]

Thanks for reply.
The Xmas was completely out of my mind. I was wondering why nobody was not answering.... Smile


pagination problem - El Forum - 12-27-2012

[eluser]Unknown[/eluser]
Yeah pagination is still issue to converting as the guild clear all thing but still need best support from experts


pagination problem - El Forum - 12-28-2012

[eluser]Unknown[/eluser]
[quote author="sniperscope" date="1356499930"]Never mind, i solved it.[/quote]

It would come in handy if you shared your solution though!