Skip to content

Commit

Permalink
Improves next() and prev() documentation
Browse files Browse the repository at this point in the history
Adds the explanation for the URL available option, which is really useful when dealing with non-default CakePHP routes, now lacking from the official documentation.
  • Loading branch information
GiamPy5 committed Jan 26, 2014
1 parent d7d8fc0 commit ef08534
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Cake/View/Helper/PaginatorHelper.php
Expand Up @@ -264,6 +264,7 @@ public function sortDir($model = null, $options = array()) {
*
* ### Options:
*
* - `url` Allows sending routing parameters such as controllers, actions or passed arguments.
* - `tag` The tag wrapping tag you want to use, defaults to 'span'. Set this to false to disable this option
* - `escape` Whether you want the contents html entity encoded, defaults to true
* - `model` The model to use, defaults to PaginatorHelper::defaultModel()
Expand All @@ -289,6 +290,7 @@ public function prev($title = '<< Previous', $options = array(), $disabledTitle
*
* ### Options:
*
* - `url` Allows sending routing parameters such as controllers, actions or passed arguments.
* - `tag` The tag wrapping tag you want to use, defaults to 'span'. Set this to false to disable this option
* - `escape` Whether you want the contents html entity encoded, defaults to true
* - `model` The model to use, defaults to PaginatorHelper::defaultModel()
Expand Down

0 comments on commit ef08534

Please sign in to comment.