Welcome Guest, Not a member yet? Register   Sign In
pagination problem
#1

[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/co...agination/
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


Messages In This Thread
pagination problem - by El Forum - 12-24-2012, 11:30 PM
pagination problem - by El Forum - 12-25-2012, 05:58 PM
pagination problem - by El Forum - 12-25-2012, 10:32 PM
pagination problem - by El Forum - 12-26-2012, 08:08 AM
pagination problem - by El Forum - 12-26-2012, 08:59 AM
pagination problem - by El Forum - 12-27-2012, 03:13 AM
pagination problem - by El Forum - 12-28-2012, 05:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB