Skip to content

Commit

Permalink
added docs about # link to sort and paginiation
Browse files Browse the repository at this point in the history
  • Loading branch information
cebe committed Jan 20, 2014
1 parent 86933cd commit ed14eaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion framework/data/Pagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class Pagination extends Object
* @var array parameters (name => value) that should be used to obtain the current page number
* and to create new pagination URLs. If not set, all parameters from $_GET will be used instead.
*
* In order to add hash to all links use array_merge($_GET, ['#' => 'my-hash']).
* In order to add hash to all links use `array_merge($_GET, ['#' => 'my-hash'])`.
*
* The array element indexed by [[pageVar]] is considered to be the current page number.
* If the element does not exist, the current page number is considered 0.
Expand Down
2 changes: 2 additions & 0 deletions framework/data/Sort.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ class Sort extends Object
* @var array parameters (name => value) that should be used to obtain the current sort directions
* and to create new sort URLs. If not set, $_GET will be used instead.
*
* In order to add hash to all links use `array_merge($_GET, ['#' => 'my-hash'])`.
*
* The array element indexed by [[sortVar]] is considered to be the current sort directions.
* If the element does not exist, the [[defaults|default order]] will be used.
*
Expand Down

0 comments on commit ed14eaa

Please sign in to comment.