Hello,
I have pagination, Everything works fine. But I need to remove current page from right side.
Here it is 7 (In Screenshot)
My code :
PHP Code:
$this->load->library('pagination');
$config = array();
$config["base_url"] = base_url() . "rent";
$config["total_rows"] = $this->listing_model->countListing("Rent");
$config["per_page"] = 12;
$config["uri_segment"] = 2;
$config['full_tag_open'] = '<nav aria-label="Page navigation"><ul class="pagination">';
$config['full_tag_close'] = '</ul></nav>';
$config['next_link'] = 'Next';
$config['prev_link'] = 'Previous';
$config['next_tag_open'] = '<li>';
$config['next_tag_close'] = '</li>';
$config['prev_tag_open'] = '<li>';
$config['prev_tag_close'] = '</li>';
$config['num_tag_open'] = '<li>';
$config['num_tag_close'] = '</li>';
$config['first_link'] = 'First';
$config['last_link'] = 'Last';
$config['cur_tag_open'] = '<li class="active">';
$config['cur_tag_close'] = '</li>';
$config['first_link'] = FALSE;
$config['last_link'] = FALSE;
$this->pagination->initialize($config);
$page = ($this->uri->segment(2)) ? $this->uri->segment(2) : 0;
$data["links"] = $this->pagination->create_links();