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
2fc1a382
Commit
2fc1a382
authored
May 31, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'arturf-master'
parents
d7a251bb
ad7f7c43
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
Menu.php
framework/widgets/Menu.php
+2
-0
No files found.
framework/CHANGELOG.md
View file @
2fc1a382
...
...
@@ -65,6 +65,7 @@ Yii Framework 2 Change Log
-
Enh #3574: Add integrity check support for SQLite (zeeke)
-
Enh #3597: Nested array support for HTML5 custom "data-
*
" attributes (armab)
-
Enh #3607: Added support for limit in migrations actions: history, new, redo (Ragazzo)
-
Enh #3636: Hide menu container tag with empty items in
`yii\widgets\Menu`
(arturf)
-
Enh: Added support for using sub-queries when building a DB query with
`IN`
condition (qiangxue)
-
Enh: Supported adding a new response formatter without the need to reconfigure existing formatters (qiangxue)
-
Enh: Added
`yii\web\UrlManager::addRules()`
to simplify adding new URL rules (qiangxue)
...
...
framework/widgets/Menu.php
View file @
2fc1a382
...
...
@@ -166,10 +166,12 @@ class Menu extends Widget
$this
->
params
=
Yii
::
$app
->
request
->
getQueryParams
();
}
$items
=
$this
->
normalizeItems
(
$this
->
items
,
$hasActiveChild
);
if
(
!
empty
(
$items
))
{
$options
=
$this
->
options
;
$tag
=
ArrayHelper
::
remove
(
$options
,
'tag'
,
'ul'
);
echo
Html
::
tag
(
$tag
,
$this
->
renderItems
(
$items
),
$options
);
}
}
/**
* Recursively renders the menu items (without the container tag).
...
...
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