resolved #28
This commit is contained in:
parent
cb22d1b082
commit
b91968606a
|
@ -167,7 +167,7 @@ class core extends controller
|
|||
$this->account = $this->session->account($this->errors['account']);
|
||||
|
||||
// Initializing of the settings
|
||||
$this->settings = settings::active();
|
||||
$this->settings = settings::active(create: SETTINGS_PROJECT);
|
||||
|
||||
// Initializing of the language
|
||||
$this->language = $this->account?->language ?? $this->session?->buffer['language'] ?? $this->settings?->language ?? language::en;
|
||||
|
|
|
@ -18,6 +18,7 @@ define('ROBOT_VERSION', '1.0.0');
|
|||
define('VIEWS', realpath('..' . DIRECTORY_SEPARATOR . 'views'));
|
||||
define('STORAGE', realpath('..' . DIRECTORY_SEPARATOR . 'storage'));
|
||||
define('SETTINGS', realpath('..' . DIRECTORY_SEPARATOR . 'settings'));
|
||||
define('SETTINGS_PROJECT', require(SETTINGS . DIRECTORY_SEPARATOR . 'project.php'));
|
||||
define('INDEX', __DIR__);
|
||||
define('ROOT', INDEX . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR);
|
||||
define('THEME', 'default');
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'project' => [
|
||||
'name' => 'Project'
|
||||
],
|
||||
'language' => 'en',
|
||||
'currency' => 'usd',
|
||||
'company' => [
|
||||
'identifier' => null,
|
||||
'tax' => null,
|
||||
'name' => null,
|
||||
'offer' => false,
|
||||
'sim' => null,
|
||||
'mail' => null
|
||||
]
|
||||
];
|
Loading…
Reference in New Issue