修改页面显示的一些细节
This commit is contained in:
parent
a31b5f8e6a
commit
34540cc452
|
@ -12,7 +12,7 @@
|
|||
if($user)
|
||||
{
|
||||
echo '<a href="/account"><i class="icon-user"></i> '.$user->username.'</a> ';
|
||||
if ($user->usertype=="administrator") echo '<a href="/admin"><i class="icon-cog"></i> 后台 </a><a href="/data/order"><i class="icon-shopping-cart"></i> 数据篮 </a> <a href="/account/logout">退出</a> ';
|
||||
if ($user->usertype=="administrator") echo '<a href="/admin"><i class="icon-cog"></i> 后台 </a<a href="/account/logout">退出</a> ';
|
||||
} else {
|
||||
echo '<a href="/account/login">登录</a> | <a href="/account/register">注册</a>';
|
||||
}
|
||||
|
@ -20,10 +20,10 @@
|
|||
|
||||
</p>
|
||||
<ul class="nav nav-pills pull-right">
|
||||
<li class="active"><a href="/">首 页</a></li>
|
||||
<li><a href="/news/index">新 闻</a></li>
|
||||
<li><a href="/data">数 据</a></li>
|
||||
<li><a href="/about">关于我们</a></li>
|
||||
<li id="page-nav-index"><a href="/">首 页</a></li>
|
||||
<li id="page-nav-news"><a href="/news/index">新 闻</a></li>
|
||||
<li id="page-nav-data"><a href="/data">数 据</a></li>
|
||||
<li id="page-nav-about"><a href="/about">关于我们</a></li>
|
||||
<!-- <li><a href="/account/login">登录</a></li>-->
|
||||
|
||||
<li class="input-append " id="search">
|
||||
|
|
|
@ -35,7 +35,7 @@ class CategoryController extends AbstractActionController
|
|||
|
||||
|
||||
$category = new \Sookon\Article\Category;
|
||||
$this->ViewModel->setVariable('categories',$category->getFullCategory());
|
||||
$this->ViewModel->setVariable('categories',$category->GetCategory());
|
||||
unset($category);
|
||||
|
||||
//新闻栏目首页
|
||||
|
|
|
@ -56,6 +56,8 @@ class AclAuthorize
|
|||
$this->acl->allow($this->role->guest,'Application\Controller\Index',array('index'));
|
||||
$this->acl->allow($this->role->guest,'Article\Controller\Article',array('index','view'));
|
||||
$this->acl->allow($this->role->guest,'Article\Controller\Category',array('index','list'));
|
||||
|
||||
$this->acl->allow($this->role->guest,'Metadata\Controller\Index');
|
||||
}
|
||||
|
||||
public function authorizeAdviser()
|
||||
|
|
|
@ -67,7 +67,9 @@ class LayoutHelpers
|
|||
{
|
||||
$ctl = array(
|
||||
'Application\Controller\Index' => 'index',
|
||||
'Application\Controller\Account' => 'account',
|
||||
'Article\Controller\Article' => 'news',
|
||||
'Article\Controller\Category' => 'news',
|
||||
'Metadata\Controller\Index' => 'data',
|
||||
);
|
||||
return isset($ctl[$invokename]) ? $ctl[$invokename]:"";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue