public function index()
 {
     $this->template->template_file = 'paginate/index';
     /* Using scrolless pagination */
     $total_group = $this->model->index();
     $pag = new Pagination();
     $p = $pag->useScrolless($total_group, URL . 'paginate/fetch_pages');
     $this->template->entries[] = (object) ['pagination' => $p, 'jquery' => URL . "public/js/jquery.min.js", 'custom' => URL . "public/js/custom.js", 'image' => URL . "public/images/ajax-loader.gif", 'back' => URL . "user", 'logout' => LOGOUT];
     $markup = $this->template->generate_markup();
     echo $this->view->render($markup);
 }