根据注册开放状态决定是否显示注册入口
This commit is contained in:
parent
83db8e3616
commit
ccc4335188
@ -42,6 +42,7 @@ $this->registerLinkTag(['rel' => 'icon', 'type' => 'image/x-icon', 'href' => Yii
|
|||||||
'items' => [
|
'items' => [
|
||||||
['label' => '首页', 'url' => ['/site/index']],
|
['label' => '首页', 'url' => ['/site/index']],
|
||||||
['label' => '登录', 'url' => ['/user/login']],
|
['label' => '登录', 'url' => ['/user/login']],
|
||||||
|
$_ENV['REGISTRATION_ENABLED'] === 'false'? '' : ['label' => '注册', 'url' => ['/user/register']],
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
NavBar::end();
|
NavBar::end();
|
||||||
|
Loading…
Reference in New Issue
Block a user