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


Messages In This Thread
pagination need help - by asifagaria - 01-19-2015, 04:35 AM
RE: Ones again need help - by asifagaria - 01-19-2015, 01:50 PM
RE: pagination need help - by jaysondotp - 01-20-2015, 06:39 PM
RE: pagination need help - by asifagaria - 01-21-2015, 05:26 AM
RE: pagination need help - by gametrack - 05-03-2017, 09:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB