• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pagination need help

#1
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.