Welcome Guest, Not a member yet? Register   Sign In
Pagenation load
#8

[eluser]tonanbarbarian[/eluser]
you do not have a constructor in the controller (or at least in the code you have posted here)

Code:
<?php
class test extends Controller {

function test() {
parent::Controller();
}

function index()
{
$this->load->library(’pagination’);

$config[’base_url’] = ‘http://www.your-site.com/index.php/test/page/’;
$config[’total_rows’] = ‘200’;
$config[’per_page’] = ‘20’;

$this->pagination->initialize($config);

echo $this->pagination->create_links();
}
}


Messages In This Thread
Pagenation load - by El Forum - 01-14-2008, 07:16 AM
Pagenation load - by El Forum - 01-14-2008, 07:23 AM
Pagenation load - by El Forum - 01-14-2008, 07:40 AM
Pagenation load - by El Forum - 01-14-2008, 07:53 AM
Pagenation load - by El Forum - 01-14-2008, 07:59 AM
Pagenation load - by El Forum - 01-14-2008, 08:02 AM
Pagenation load - by El Forum - 01-16-2008, 01:52 AM
Pagenation load - by El Forum - 01-16-2008, 02:27 AM
Pagenation load - by El Forum - 01-16-2008, 02:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB