Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. public function index() {
  2. // ....
  3. $this->pagination->initialize($config);
  4. $data['pagination'] = $this->pagination->create_links();
  5. $limit = $config['per_page'];
  6. $offset = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0;
  7. $where = "id IS NOT NULL";
  8. $servidores = $this->server->listarServidores($this->select, $where, $limit, $offset);
  9. $data['servidores'] = $servidores;
  10. $this->template->load('template_view', 'home/home_view', $data);
  11.  
  12. }
  13.  
  14. $data["limit"] = $limit;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement