Pagination Not working for me |
[eluser]Arockia Raj[/eluser]
Hi, I am new to CI. I tried Pagination but i can't. Plz any one help me. My controller code $this->load->library('pagination'); $per_page=3; $config['base_url'] = base_url().'index.php/product/viewProduct/'; $config['total_rows'] = 9; $config['per_page'] = 3; $config['uri_segment'] = 3; $config['num_links'] = 2; $config['page_query_string'] = TRUE; $config['first_link'] = 'First'; $config['last_link'] = 'Last'; $config['full_tag_open'] = '<p>'; $config['full_tag_close'] = '</p>'; $this->outputData['products'] = $this->user_model->getProducts($per_page, $this->uri->segment(3)); $this->pagination->initialize($config); View code <? echo $this->pagination->create_links(); ?> If i tried the above code, in the browser i get the links like 1 2 3 > if i click on 2 it redirect to the page http://localhost/pricebuster/index.php/p...per_page=3 . but in this page there is no link for 1. Also it showing same records as like page1. Same problem for link 3. Thanks in advance. Regards, Raj |
Messages In This Thread |
Pagination Not working for me - by El Forum - 05-13-2010, 01:32 AM
Pagination Not working for me - by El Forum - 05-14-2010, 06:39 AM
Pagination Not working for me - by El Forum - 05-14-2010, 06:59 AM
Pagination Not working for me - by El Forum - 05-14-2010, 07:47 AM
|