[eluser]Unknown[/eluser]
Hello everybody,
I create folder admin in controller. And I create User Controller. In User Controller, I create listUser and paging in listUser.
All data show correct, but still error in paging:
1 2 3 >
When I clicked 2 page, it don't bold 2 number that it bold 1 number
If I move User Controller out folder admin.
All data and show link is correct. But If I put User Controller, it's will error.
Please fix help me
This is my code in listUser of User Controllder
Code:
public function listuser()
{
$this->load->library("pagination");
$config['base_url'] = base_url()."admin/user/listuser/";
$config['total_rows'] = $this->Muser->count_user();
$config['per_page'] = '5';
$this->pagination->initialize($config);
$data = array(
"title" => "List User",
"script" => "bold-content.js",
"users" => $this->Muser->list_user($config['per_page'],$this->uri->segment(4)),
);
$this->load->view("user/list",$data);
}