Ejemplo n.º 1
0
 public function pagination()
 {
     $pagination_model = clone $this->model;
     $pagination_config = array('total_items' => $pagination_model->count_all());
     $pagination = Pagination::factory($pagination_config);
     $this->model->offset($pagination->offset);
     $this->model->limit($pagination->items_per_page);
     View::set_global('pagination', $pagination);
 }