• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Uri class is missing

#1
Exclamation 
i want to use pagination class but  the uri class is missing from system library.
i've tried to download it again but i cannot find it either.
Reply

#2
(12-11-2015, 05:43 PM)rymesaint Wrote: i want to use pagination class but  the uri class is missing from system library.
i've tried to download it again but i cannot find it either.

The full path of it is system/core/URI.php
Reply

#3
oh right, but when i try using the segment it's always give me 0?
Reply

#4
Show your code - how are you trying to use the Uri class, and what is giving you an error.
Reply

#5
(12-14-2015, 11:44 PM)ciadmin Wrote: Show your code - how are you trying to use the Uri class, and what is giving you an error.

Here's my code :
Code:
$config['base_url'] = 'http://localhost/codeigniter/anime/page/';
$config['total_rows'] = $this->episode_model->count_all();
$config['per_page'] = 4;


$this->pagination->initialize($config);
$page = $this->uri->segment(3);

$info['anime'] = $this->episode_model->select_all($config['per_page'],$page);

$this->load->view('header', $data);
$this->load->view('content', $info);
$this->load->view('footer', $data);
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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