routes - routing in codeigniter not working -


the page displaying correctly when click second page in pagination showing page not found.when had given route problem take place..this route had given..

$route['mens']='hardpolo_control/men_image'; $route['mens/(:any)']='hardpolo_control/men_image/$1'; 

this pagination url

public function men_image($category_name=null)     {        $category_id =$this->hardpolo_model->get_category_id($category_name);          $data['active_mn']=$category_id;     $data['mendropdown']=$this->hardpolo_model->get_category_by_parent($p_id=8);     $data['kidsdropdown']=$this->hardpolo_model->get_category_by_parent($p_id=9);     $data['accessoriesdropdown']=$this->hardpolo_model->get_category_by_parent($p_id=21);     $config['base_url'] = base_url().'mens/'.$category_name;     $config['per_page'] = 3;     $config['uri_segment'] = 3;     $config['total_rows'] = $this->hardpolo_model->count_category_images($category_id);     $data['men_category_galery']=$this->hardpolo_model->get_category_images($category_id,$config['per_page'],$this->uri->segment(3));     $this->load->library('pagination',$config);     $data['page_links'] = $this->pagination->create_links();     $this->load->view('men_image',$data); } 


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -