| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function showPage($pageNumber) |
||
| 14 | { |
||
| 15 | $itemsPerPage = 10; |
||
| 16 | $totalItems = 150; |
||
| 17 | $this->paginator($pageNumber, $itemsPerPage, $totalItems) |
||
| 18 | ->page(function(int $page) { |
||
| 19 | $this->response->assign('div2', 'innerHTML', "Showing page number $page"); |
||
| 20 | }) |
||
| 21 | ->render($this->rq()->showPage(), 'pagination'); |
||
| 22 | } |
||
| 31 |