$id = $this->uri->segment(3);
$perpage = 5;
$this->load->library('pagination');
$config['base_url'] = base_url().'index.php/contname/method/'.$id;
$config['total_rows'] = $this->feedbackmodel->count_itemscat($id);
$config['per_page'] = $perpage;
$config['uri_segment'] = 4;
$this->pagination->initialize($config);
请任何人帮助我 提前谢谢!
答案 0 :(得分:1)
检入您的模型如何获取页面数据。您必须在该功能中设置您要查找的页面,例如
function getPage($count = 5, $from = 0) { // params are important
$this->db->select('*', FALSE);
..........
$query = $this->db->get('your_table', $count, $from); // <- that's important: $count, $from
return $query->result();
}
听起来你错过了'from'param或类似的东西