Example #1
0
 private function showlist()
 {
     $this->template->content = new View('admin_configuration/list');
     //Assign
     $this->template->content->keyword = $this->search['keyword'];
     $model = new Configuration_Model();
     $this->db->orderby('configuration_title', 'asc');
     $mlist = $model->get();
     //Pagination
     $this->pagination = new Pagination(array('base_url' => 'admin_configuration/search/', 'uri_segment' => 'page', 'total_items' => count($mlist), 'items_per_page' => count($mlist), 'style' => 'digg'));
     $this->db->limit($this->pagination->items_per_page, $this->pagination->sql_offset);
     $this->db->orderby('configuration_title', 'asc');
     $mlist = $model->get();
     $this->template->content->mlist = $mlist;
     $this->_get_submit();
 }