Welcome Guest, Not a member yet? Register   Sign In
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

(This post was last modified: 12-16-2015, 08:29 PM by rymesaint.)

(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




Theme © iAndrew 2016 - Forum software by © MyBB