Pager.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace Config;
  3. use CodeIgniter\Config\BaseConfig;
  4. class Pager extends BaseConfig
  5. {
  6. /**
  7. * --------------------------------------------------------------------------
  8. * Templates
  9. * --------------------------------------------------------------------------
  10. *
  11. * Pagination links are rendered out using views to configure their
  12. * appearance. This array contains aliases and the view names to
  13. * use when rendering the links.
  14. *
  15. * Within each view, the Pager object will be available as $pager,
  16. * and the desired group as $pagerGroup;
  17. *
  18. * @var array<string, string>
  19. */
  20. public array $templates = [
  21. 'default_full' => 'CodeIgniter\Pager\Views\default_full',
  22. 'default_simple' => 'CodeIgniter\Pager\Views\default_simple',
  23. 'default_head' => 'CodeIgniter\Pager\Views\default_head',
  24. ];
  25. /**
  26. * --------------------------------------------------------------------------
  27. * Items Per Page
  28. * --------------------------------------------------------------------------
  29. *
  30. * The default number of results shown in a single page.
  31. */
  32. public int $perPage = 20;
  33. }