Skip to content

Commit

Permalink
Adding a usage sample to Paginator->numbers()
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 28, 2010
1 parent eb38b8b commit ab552c2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions cake/libs/view/helpers/paginator.php
Expand Up @@ -602,7 +602,12 @@ public function counter($options = array()) {

/**
* Returns a set of numbers for the paged result set
* uses a modulus to decide how many numbers to show on each side of the current page (default: 8)
* uses a modulus to decide how many numbers to show on each side of the current page (default: 8).
*
* `$this->Paginator->numbers(array('first' => 2, 'last' => 2));`
*
* Using the first and last options you can create links to the beginning and end of the page set.
*
*
* ### Options
*
Expand All @@ -613,9 +618,9 @@ public function counter($options = array()) {
* - `separator` Separator content defaults to ' | '
* - `tag` The tag to wrap links in, defaults to 'span'
* - `first` Whether you want first links generated, set to an integer to define the number of 'first'
* links to generate
* links to generate.
* - `last` Whether you want last links generated, set to an integer to define the number of 'last'
* links to generate
* links to generate.
* - `ellipsis` Ellipsis content, defaults to '...'
*
* @param mixed $options Options for the numbers, (before, after, model, modulus, separator)
Expand Down

0 comments on commit ab552c2

Please sign in to comment.