Welcome Guest, Not a member yet? Register   Sign In
Pagination: Add getTotalRecords and getCurrentPageRecordsTotal
#9

If you open up system\Pager you will see what it does.

PHP Code:
public function getTotal(string $group 'default'): int

public function getPageCount(string $group 'default'): int

public function getCurrentPage(string $group 'default'): int

public function getPerPage(string $group 'default'): int

  
/**
    * Returns an array with details about the results, including
    * total, per_page, current_page, last_page, next_url, prev_url, from, to.
    * Does not include the actual data. This data is suitable for adding
    * a 'data' object to with the result set and converting to JSON.
    */
    public function getDetails(string $group 'default'): array 
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Pagination: Add getTotalRecords and getCurrentPageRecordsTotal - by InsiteFX - 08-05-2023, 11:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB