CodeIgniter Forums
pagination need help - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Model-View-Controller (https://forum.codeigniter.com/forumdisplay.php?fid=10)
+--- Thread: pagination need help (/showthread.php?tid=804)



pagination need help - asifagaria - 01-19-2015

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);
 
 }




RE: Ones again need help - asifagaria - 01-19-2015

any solution ??


RE: pagination need help - jaysondotp - 01-20-2015

Kindly help...


RE: pagination need help - asifagaria - 01-21-2015

Oops I solve this


RE: pagination need help - gametrack - 05-03-2017

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

Thanks