|
如果
$this->load->library ( array('pagination','table') );
$this->load->model ( 'Db' );
$config ['base_url'] = 'http://localhost/php_eg2/fblog/index/';
$config ['total_rows'] = $this->Db->select_allrow();
$config ['per_page'] = '3';
$this->pagination->initialize ( $config );
$data ['results'] = $this->Db->select ( $config ['per_page'], $this->uri->segment ( 3 ) );
$this->table->set_heading ( 'ID', 'Name', 'Pass', 'Email' ,'Uid','Uidname');
$this->load->view ( 'view_book', $data );
base_url这样配置没错误,分页也可以正常运行
但是我把
$config ['base_url'] = 'http://localhost/php_eg2/eg/fblog/index/';
配置fblog前多了个目录,也不是不行,就是不能返回第一行 |
|