Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Rock Zhang
9 years ago
Commit
914804353020d868a1f247754a6232f2b1c6292f
1 parent
cb9e44a5
添加顶部按钮开关
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
library/Action/AbstractAction.php
library/Action/AbstractAction.php
View file @
9148043
...
...
@@ -369,7 +369,7 @@ class AbstractAction extends Controller_Abstract
* @param string $homeUrl 返回首页的链接
* @return void
*/
protected
function
setNavHeader
(
$title
=
''
,
$backUrl
=
true
,
$homeUrl
=
'/'
)
protected
function
setNavHeader
(
$title
=
''
,
$backUrl
=
true
,
$homeUrl
=
'/'
,
$navBtn
=
false
)
{
$header
=
array
();
...
...
@@ -387,6 +387,9 @@ class AbstractAction extends Controller_Abstract
if
(
!
empty
(
$homeUrl
))
{
$header
[
'navHome'
]
=
$homeUrl
.
'?go=1&t='
.
time
();
}
if
(
$navBtn
)
{
$header
[
'navBtn'
]
=
true
;
}
$controller
=
$this
->
getRequest
()
->
getControllerName
();
if
(
$controller
!==
'Home'
)
{
...
...
Please
register
or
login
to post a comment