public function index() { $this->load->library('pagination'); $this->load->model('Pages_model'); $query = $this->input->get('q', TRUE); $category = $this->input->get('category', TRUE); $city = $this->input->get('city', TRUE); $state = $this->input->get('state', TRUE); $config['base_url'] = base_url('search') . '?' . http_build_query($_GET); $config['total_rows'] = $this->Pages_model->count_search_results($query, $category, $city, $state); $config['per_page'] = 12; $config['page_query_string'] = TRUE; $config['query_string_segment'] = 'per_page'; // Bootstrap 3 Pagination Style $config['full_tag_open'] = ''; $config['first_tag_open'] = '
  • '; $config['first_tag_close'] = '
  • '; $config['last_tag_open'] = '
  • '; $config['last_tag_close'] = '
  • '; $config['next_tag_open'] = '
  • '; $config['next_tag_close'] = '
  • '; $config['prev_tag_open'] = '
  • '; $config['prev_tag_close'] = '
  • '; $config['cur_tag_open'] = '
  • '; $config['cur_tag_close'] = '
  • '; $config['num_tag_open'] = '
  • '; $config['num_tag_close'] = '
  • '; $this->pagination->initialize($config); $page = $this->input->get('per_page', TRUE); $page = ($page) ? $page : 0; $results = $this->Pages_model->get_search_results($query, $category, $city, $state, $config['per_page'], $page); $data['results'] = $results; $data['pagination'] = $this->pagination->create_links(); $data['query'] = $query; $data['category'] = $category; $this->load->view('search', $data); } 404 Page Not Found

    404 Page Not Found

    The page you requested was not found.