Welcome Guest, Not a member yet? Register   Sign In
pagination doesn't work
#5

(03-22-2015, 07:49 AM)RobertSF Wrote: Hi. Does your last line mean that you solved your problem? If not, try using a var_dump to see what is in the array that you pass. If you are using
$this->template->load('users/index', array('users' => $data)); in your controller
then put in your view something like this

Code:
var_dump($users);
exit;
<?php foreach($users as $key => $value):?>

Also, $this->template->load is not documented for CI 2 or CI 3. The documentation refers to $this->template->parse. Are you using a third-party library of some kind? I'm just curious because using that is not giving you an error.

no i still have the problem. i'm using a template library. could you remote to my pc please?

the result after using var_dump:
Quote:array (size=2)
'result' =>
array (size=0)
empty
'link' => string '&nbsp;<strong>1</strong>&nbsp;<a href="http://localhost/ci_pmanagement/admin/index.php/user/page/1">2</a>&nbsp;<a href="http://localhost/ci_pmanagement/admin/index.php/user/page/1">&gt;</a>&nbsp;' (length=195)
Reply


Messages In This Thread
pagination doesn't work - by chouwech - 03-21-2015, 11:39 AM
RE: pagination doesn't work - by RobertSF - 03-21-2015, 08:34 PM
RE: pagination doesn't work - by chouwech - 03-22-2015, 01:24 AM
RE: pagination doesn't work - by RobertSF - 03-22-2015, 07:49 AM
RE: pagination doesn't work - by chouwech - 03-22-2015, 10:22 AM
RE: pagination doesn't work - by RobertSF - 03-22-2015, 11:55 AM
RE: pagination doesn't work - by chouwech - 03-22-2015, 01:18 PM
RE: pagination doesn't work - by phoenixcoded - 03-25-2015, 05:43 AM
RE: pagination doesn't work - by RobertSF - 03-25-2015, 07:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB