![]() |
Pagination link is not working in 2.0.1 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Pagination link is not working in 2.0.1 (/showthread.php?tid=42540) |
Pagination link is not working in 2.0.1 - El Forum - 06-10-2011 [eluser]renju[/eluser] Pagination link is not working properly as you can see in my website (bottom right) http://www.donaldson.com.au/new/partdetail/eqivalentparts/17953/1 Controller code: class Partdetail extends CI_Controller { function index() { $this -> load -> library("labels"); $labels['labels']= $this->labels->getlabels(); $this->load->model('partdetails_model'); $this->load->library('smarty_parser'); $this->load->helper('html'); $this->load->helper('url'); $this->load->helper('form'); $this->smarty_parser->parse("ci:partdetail_view.tpl", $data); } function eqivalentparts(){ $this->index(); $this->load->model('partdetails_model'); $current=$this->uri->segment(4); $current2=$this->uri->segment(2); $part_id=$this->uri->segment(3); $config['full_tag_open'] = '<div>'; $config['full_tag_close'] = '</div>'; $config['per_page'] = '100'; $config['base_url'] = base_url().'partdetails/eqivalentpartsLst/'.$part_id.'/'; $config['total_rows']=200; $this->pagination->initialize($config); $ary_eqiuvalentparts=$this->partdetails_model->get_eqiuvalentparts($part_id,$config['per_page'],$this->uri->segment(4)); $data['result']=$this->partdetails_model->generate_equivalentpartView($ary_eqiuvalentparts); $data['pagination']=$this->pagination->create_links(); $this->smarty_parser->parse("ci:partdetailview.tpl", $data); } } Please any one help me to resolve the issue ASAP. Thanks. Pagination link is not working in 2.0.1 - El Forum - 06-10-2011 [eluser]osci[/eluser] in eqivalentparts() Code: $config['uri_segment'] = 4; It's in the user guide. Pagination link is not working in 2.0.1 - El Forum - 06-10-2011 [eluser]renju[/eluser] Thanks osci for your quick reply. Issue is resolved. |