Same Pagination Problem |
[eluser]Önder ÖZCAN[/eluser]
I have pagination problem my model is look like : class Clinic_list extends CI_Model { var $limit; function __construct() { // Call the Model constructor parent::__construct(); $this->load->database(); $this->load->library('pagination'); } function entries($limit) { $query = $this->db->get('v16_listings',$limit); return $query->result(); } } ?> My Controller is : <?php class clinics extends CI_Controller { var $data; public function index () { $this->load->model('Clinic_list'); $this->load->helper(array('form', 'url')); $config['base_url'] = site_url('clinics/index/page/'); $config['total_rows'] = $this->db->count_all('v16_listings'); $config['per_page'] = 20; $config['last_link'] = 'Son'; $config['first_link'] = 'İlk'; $this->pagination->initialize($config); $data['_clinicList'] = $this->Clinic_list->entries (30); $this->load->view('list', $data); } } ?> In view every pagenumber has same data , its look like this : http://localhost/saglik/index.php/clinics/index/page/ http://localhost/saglik/index.php/clinics/index/page/20 http://localhost/saglik/index.php/clinics/index/page/40 All page number has no data , i also tried with uri segment but it's better to leave it for CI ? |
Messages In This Thread |
Same Pagination Problem - by El Forum - 08-21-2012, 12:47 PM
Same Pagination Problem - by El Forum - 08-21-2012, 03:00 PM
Same Pagination Problem - by El Forum - 08-21-2012, 03:15 PM
Same Pagination Problem - by El Forum - 08-21-2012, 05:48 PM
Same Pagination Problem - by El Forum - 08-22-2012, 03:51 AM
Same Pagination Problem - by El Forum - 08-22-2012, 06:36 AM
Same Pagination Problem - by El Forum - 08-22-2012, 09:28 AM
Same Pagination Problem - by El Forum - 08-22-2012, 10:58 AM
Same Pagination Problem - by El Forum - 08-22-2012, 11:14 AM
|