Posted By

jzumbrun on 07/02/10


Tagged

textmate pagination ci


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

dantreacy


pagination


 / Published in: PHP
 

  1. // start up pagination
  2. $this->load->library("pagination");
  3. $pag_conf['base_url'] = base_url().'rights/index';
  4. $pag_conf['total_rows'] = $this->right_table->read(array('count' => true, 'group' =>'value'));
  5. $pag_conf['uri_segment'] = 3;
  6. $pag_conf['per_page'] = 10;
  7. $this->pagination->initialize($pag_conf);
  8.  
  9. $data['rights'] = $this->right_table->read(array('group' =>'value','order'=> 'name ASC','limit'=>$pag_conf['per_page'], 'offset' => $this->uri->segment($pag_conf['uri_segment'])));

Report this snippet  

You need to login to post a comment.