|
$config['per_page'] = 1;
$config['base_url'] = 'http://localhost/index.php/index_c/index/';
$config['total_rows'] = $this->db->count_all('pc');
$config['uri_segment'] = 3;
$arr = $this->index_m->fenye($config['per_page'],$this->uri->segment(3));
$this->pagination->initialize($config);
foreach($arr as $data_item){
print_r($data_item)."<br />";
}
echo $this->pagination->create_links();
这是控制器代码;还有在这个页面显示分页 分页类已经载入了,能显示分页 没有报错 但是点击分页的那个123 或者是最后一页什么的 都没反应 这是怎么回事啊 搞半天了 |
|