Pagination - Need Help

#1
[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.


Messages In This Thread
Pagination - Need Help - by El Forum - 04-19-2010, 08:19 PM
Pagination - Need Help - by El Forum - 04-19-2010, 09:40 PM
Pagination - Need Help - by El Forum - 04-19-2010, 09:56 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.