Welcome Guest, Not a member yet? Register   Sign In
Pagination not working
#4

[eluser]BaRzO[/eluser]
You don't have to use
Code:
<?php
if (isset($pagination)) {
    echo $pagination;
}
?>
Quote:Notes:

The $config array contains your configuration variables. It is passed to the $this->pagination->initialize function as shown above. Although there are some twenty items you can configure, at minimum you need the three shown. Here is a description of what those items represent:

* base_url This is the full URL to the controller class/function containing your pagination. In the example above, it is pointing to a controller called "Test" and a function called "page". Keep in mind that you can re-route your URI if you need a different structure.
* total_rows This number represents the total rows in the result set you are creating pagination for. Typically this number will be the total rows that your database query returned.
* per_page The number of items you intend to show per page. In the above example, you would be showing 20 items per page.

The create_links() function returns an empty string when there is no pagination to show.
if pagination needed. Links will be there but if not there will be empty string and to see what happening you can use profiling you can easily see what is going wrong


Messages In This Thread
Pagination not working - by El Forum - 11-14-2008, 12:33 AM
Pagination not working - by El Forum - 11-14-2008, 01:24 AM
Pagination not working - by El Forum - 11-14-2008, 01:53 AM
Pagination not working - by El Forum - 11-14-2008, 04:11 AM
Pagination not working - by El Forum - 11-14-2008, 05:41 AM
Pagination not working - by El Forum - 11-15-2008, 05:01 AM
Pagination not working - by El Forum - 11-16-2008, 10:41 PM
Pagination not working - by El Forum - 11-16-2008, 11:23 PM
Pagination not working - by El Forum - 12-02-2008, 01:51 PM
Pagination not working - by El Forum - 12-03-2008, 03:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB