Welcome Guest, Not a member yet? Register   Sign In
pagination need help
#1

(This post was last modified: 01-21-2015, 10:02 AM by asifagaria.)

i create pagination it work but it show on row

and i wont my front items in pagination
Please Solve A problem

here is my view code


controller

PHP Code:
<?php
class pagination extends Controller {
 
 function __construct() {
 
   parent::Controller();
 
   $this->load->helper('url');
 
   $this->load->database();
 
 }

 
 function index() {
 
   // load pagination class
 
   $this->load->library('pagination');
 
   $config['base_url'] = base_url().'articles/index/';
 
   $config['total_rows'] = $this->db->count_all('articles');
 
   $config['per_page'] = '5';
 
   $config['full_tag_open'] = '<p>';
 
   $config['full_tag_close'] = '</p>';

 
   $this->pagination->initialize($config);
 
 
   //load the model and get results
 
   $this->load->model('Article_model');
 
   $data['results'] = $this->Article_model->get_article($config['per_page'],$this->uri->segment(3));
 
 
   // load the HTML Table Class
 
   $this->load->library('table');
 
   $this->table->set_heading('id''title''image''category_id');
 
 
   // load the view
 
   $this->load->view('home'$data);
 
 }

Reply
#2

any solution ??
Reply
#3

Kindly help...
Reply
#4

Oops I solve this
Reply
#5

Do you help me from this problem on pagination to: http://www.update.gametrack.ro/news please ???

Thanks
Reply




Theme © iAndrew 2016 - Forum software by © MyBB