[eluser]$ilovephp[/eluser]
Using the following codes in the controller:
Code:
function configure($base_url, $total_rows, $per_page)
{
$config = array
(
'base_url' => $base_url,
'total_rows' => $total_rows,
'per_page' => $per_page
);
$this->pagination->initialize($config);
}
//where base_url = http://localhost/test_project/index.php/users/page
and this code in the view:
Code:
$this->pagination->create_links();
i was able to generate the pagination links, it does work, however, when i try to click links in the pagination it gives me desire results EXCEPT the FIRST page or the PAGE 1 of the pagination.
I mean, when i click 2 it gives me "http://localhost/test_project/index.php/users/page/2", also working in other pages except the first page which gives me "http://localhost/test_project/index.php/users/page/".
The first link will of course generate an error.