Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
4d5ba13c
Commit
4d5ba13c
authored
Feb 28, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make registering of link tags optional in LinkPager
parent
5feba594
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
CHANGELOG.md
framework/CHANGELOG.md
+1
-1
LinkPager.php
framework/widgets/LinkPager.php
+10
-1
No files found.
framework/CHANGELOG.md
View file @
4d5ba13c
...
...
@@ -148,7 +148,7 @@ Yii Framework 2 Change Log
-
Enh: Added support for building SQLs with sub-queries (qiangxue)
-
Enh: Added
`Pagination::getLinks()`
(qiangxue)
-
Enh: Added support for reading page size from query parameters by
`Pagination`
(qiangxue)
-
Enh: LinkPager
will
now register relational link tags in the html header for prev, next, first and last page (cebe)
-
Enh: LinkPager
can
now register relational link tags in the html header for prev, next, first and last page (cebe)
-
Chg #1186: Changed
`Sort`
to use comma to separate multiple sort fields and use negative sign to indicate descending sort (qiangxue)
-
Chg #1519:
`yii\web\User::loginRequired()`
now returns the
`Response`
object instead of exiting the application (qiangxue)
-
Chg #1586:
`QueryBuilder::buildLikeCondition()`
will now escape special characters and use percentage characters by default (qiangxue)
...
...
framework/widgets/LinkPager.php
View file @
4d5ba13c
...
...
@@ -89,6 +89,13 @@ class LinkPager extends Widget
* If this property is null, the "last" page button will not be displayed.
*/
public
$lastPageLabel
;
/**
* @var bool whether to register link tags in the HTML header for prev, next, first and last page.
* Defaults to `false` to avoid conflicts when multiple pagers are used on one page.
* @see http://www.w3.org/TR/html401/struct/links.html#h-12.1.2
* @see registerLinkTags()
*/
public
$registerLinkTags
=
false
;
/**
...
...
@@ -107,7 +114,9 @@ class LinkPager extends Widget
*/
public
function
run
()
{
$this
->
registerLinkTags
();
if
(
$this
->
registerLinkTags
)
{
$this
->
registerLinkTags
();
}
echo
$this
->
renderPageButtons
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment