Pagination link is not working in 2.0.1 |
[eluser]renju[/eluser]
Pagination link is not working properly as you can see in my website (bottom right) http://www.donaldson.com.au/new/partdeta...ts/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.
[eluser]osci[/eluser]
in eqivalentparts() Code: $config['uri_segment'] = 4; It's in the user guide.
|
Welcome Guest, Not a member yet? Register Sign In |