Add key controller to add/update keys , add bakcend skin param

This commit is contained in:
2016-02-19 21:33:06 +01:00
parent 84e2badd34
commit 4aa17e5210
10 changed files with 83 additions and 19 deletions

View File

@@ -256,9 +256,16 @@ class Helper {
return \Yii::$app->params ['user_cart_item_visibility'] == 'user';
}
public static function getBackendSkin() {
return \Yii::$app->params ['backend_skin'] ;
}
public static function getCompany() {
return \Yii::$app->params ['company'] ;
}
public static function getCompanyName() {
return \Yii::$app->params ['company_name'] ;
}
public static function isCompanyMovar() {
return \Yii::$app->params ['company'] == 'movar';

View File

@@ -17,7 +17,7 @@ return [
'login_admin_email' => true, //if admin login should send email
'account_state_close_preload_money' => 'true',//preload money wnen show account state close page
'ugiro_duplom_kod' => 1,
'ugiro_kezdemenyezo_szamlaszam' => '5860025215371128',
'ugiro_kezdemenyezo_szamlaszam' => '000000000000000',//5860025215371128
'ugiro_kezdemenyezo_azonosito' => 'A25366936T244',
//a recepicó kosár csak az aktuális user által kiadott termékeket tartalmazza
//vagy mindent
@@ -26,5 +26,6 @@ return [
/**
* Hány napig láthatják visszamenőleg a recepciósok az adatokat
* */
'reception_visibility_days' => 3
'reception_visibility_days' => 3,
'backend_skin' => 'skin-red', //skin-green
];

View File

@@ -94,6 +94,8 @@ class Key extends \yii\db\ActiveRecord
return $result;
}
/**
* @param yii\db\Query $query
* */