please help pagination |
[eluser]jonny tran[/eluser]
path link http://localhost/hoakyvina.com/product/0&per;_page=&per_page=3 mouse hover. how disable per_page?? code: $name_cat = $this->uri->segment(2); $id = (int)$this->uri->segment(4); $total = ''; // Tổng số bản ghi $page_item = (int)$this->config->item('myn_product_item_page'); // Số bản tin trên 1 trang $page_current = (int)$this->uri->segment(5); $cat_name = $this->uri->segment(3); $items = $this->data_model->get_items( $this->langid, $id, 'products', $page_item, $page_current, $total ); /** * Phân trang */ $this->load->library('pagination'); $config['base_url'] = base_url().'/cats/'.$name_cat.'/'.$cat_name.'/'.$id; $config['total_rows'] = $total; $config['per_page'] = $page_item; $config['cur_page'] = $page_current; $config['next_link'] = $this->lang->line('next_link'); $config['prev_link'] = $this->lang->line('prev_link'); $config['first_link'] = $this->lang->line('first_link'); $config['last_link'] = $this->lang->line('last_link'); $this->pagination->initialize( $config ); please help? |
Welcome Guest, Not a member yet? Register Sign In |