Pagination is showing fine. But, when I click on the pagination number 2 (i.e., first 1 2 3 4 Last). It goes to the my local-host URL without showing any error. Example:
http://localhost/project/sample/2
Here is my code :
(Controller)
$this->load->library('pagination');
$config["base_url"] = base_url() . "/dashboardcontroller/intrests";
$aaa = count($this->dashboardmodel->get_intrest_list($session_data['id']));
$config["total_rows"] = $aaa;
$config["per_page"] = 10;
$config["uri_segment"]= 3;
$config['num_links'] = 4;
$this->pagination->initialize($config);
$data["links"] = $this->pagination->create_links();
(View)
<p> <?php echo $links; ?></p>
When I use this code, I'm getting the result as :
< 1 2 3 >
Thanks in advance.