Authored by Rock Zhang

添加顶部按钮开关

@@ -369,7 +369,7 @@ class AbstractAction extends Controller_Abstract @@ -369,7 +369,7 @@ class AbstractAction extends Controller_Abstract
369 * @param string $homeUrl 返回首页的链接 369 * @param string $homeUrl 返回首页的链接
370 * @return void 370 * @return void
371 */ 371 */
372 - protected function setNavHeader($title = '', $backUrl = true, $homeUrl = '/') 372 + protected function setNavHeader($title = '', $backUrl = true, $homeUrl = '/', $navBtn = false)
373 { 373 {
374 $header = array(); 374 $header = array();
375 375
@@ -387,6 +387,9 @@ class AbstractAction extends Controller_Abstract @@ -387,6 +387,9 @@ class AbstractAction extends Controller_Abstract
387 if (!empty($homeUrl)) { 387 if (!empty($homeUrl)) {
388 $header['navHome'] = $homeUrl . '?go=1&t=' . time(); 388 $header['navHome'] = $homeUrl . '?go=1&t=' . time();
389 } 389 }
  390 + if ($navBtn) {
  391 + $header['navBtn'] = true;
  392 + }
390 393
391 $controller = $this->getRequest()->getControllerName(); 394 $controller = $this->getRequest()->getControllerName();
392 if ($controller !== 'Home') { 395 if ($controller !== 'Home') {