Update docs for PaginatorHelper::prev() and PaginatorHelper::next(). #426

Merged
merged 1 commit into from Nov 20, 2012

Projects

None yet

2 participants

@markstory markstory and 1 other commented on an outdated diff Nov 20, 2012
en/core-libraries/helpers/paginator.rst
@@ -173,7 +173,18 @@ pages in the paged data set.
<?php
echo $this->Paginator->prev(__('previous'), array('tag' => 'li'));
// Would create
- <li class="prev"><a href="/posts/index/page:1/sort:title/order:desc" rel="prev">previous</a></li>
+ <li class="prev"><a rel="prev" href="/posts/index/page:1/sort:title/order:desc">previous</a></li>
+
+ You can also disable the wrapping tag::
+
+ <?php
+ echo $this->Paginator->prev(__('previous'), array('tag' => false));
+ // Would create
+ <a class="prev" rel="prev" href="/posts/index/page:1/sort:title/order:desc">previous</a>
+
+.. versionadded:: 2.3
@markstory
markstory Nov 20, 2012

This should probably be versionchanged instead of versionadded.

@sarce
sarce Nov 20, 2012

Updated! Thanks Mark.

@markstory markstory merged commit 6a06fb7 into cakephp:master Nov 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment