add changes to account state

This commit is contained in:
2015-10-19 07:48:46 +02:00
parent b04cbda645
commit 9145f21371
50 changed files with 2139 additions and 27 deletions

View File

@@ -23,13 +23,21 @@ class FrontendMenuStructure{
protected function isLogged(){
return Yii::$app->user->isGuest;
return !Yii::$app->user->isGuest;
}
protected function addRecepcio(){
if ( $this->isLogged() ){
$this->menuItems[] = ['label' => 'Recepcio', 'url' => ['/customer/reception'] ];
$this->menuItems[] = ['label' => 'Kassza',
'items' => [
['label' => 'Account states', 'url' => ['/account-state/index'] ],
['label' => 'Open account state', 'url' => ['/account-state/open'] ],
['label' => 'Close account state', 'url' => ['/account-state/close'] ],
]
];
}
}