load->library('imageResize'); $this->load->model("filetype_model"); } public function index() { if (!$this->rbac->hasPrivilege('media_manager', 'can_view')) { access_denied(); } $data['title'] = 'Add Book'; $data['title_list'] = 'Book Details'; $this->session->set_userdata('top_menu', 'Front CMS'); $this->session->set_userdata('sub_menu', 'admin/front/media'); $data['mediaTypes'] = $this->customlib->mediaType(); $this->load->view('layout/header'); $this->load->view('admin/front/media/index', $data); $this->load->view('layout/footer'); } public function getMedia() { $data = array(); $data['mediaTypes'] = $this->customlib->mediaType(); $this->load->view('admin/front/media/getMedia', $data); } public function getPage() { $keyword = $this->input->get('keyword'); $file_type = $this->input->get('file_type'); $is_gallery = $this->input->get('is_gallery'); if (!isset($is_gallery)) { $is_gallery = 1; } $this->load->model("cms_media_model"); $this->load->library("pagination"); $config = array(); $config["base_url"] = "#"; $config["total_rows"] = $this->cms_media_model->count_all($keyword, $file_type); $config["per_page"] = 30; $config["uri_segment"] = 5; $config["use_page_numbers"] = true; $config["full_tag_open"] = '