Permalink
Browse files

Improves next() and prev() documentation

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...
GiampaoloFalqui committed Jan 26, 2014
1 parent d7d8fc0 commit ef08534460ca62bb5291bc107f1393a4ae384f00
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/Cake/View/Helper/PaginatorHelper.php
@@ -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()
@@ -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()

0 comments on commit ef08534

Please sign in to comment.