admin site template

This commit is contained in:
Marcin Łojewski
2018-06-02 08:30:49 +02:00
parent c1cc89f456
commit 28f7da0c0d
4 changed files with 324 additions and 591 deletions

View File

@@ -175,6 +175,24 @@ class SettingsController extends Controller
$properties = $this->properties->getArray();
try {
$this->getConnection();
} catch (Exception $exception) {
$this->logger->debug(
"Returning saveProperties(): error",
["app" => $this->appName]
);
return [
"status" => "error",
"data" => [
"message" => $this->localization->t(
"Error connecting to the database: "
) . $exception->getMessage()
]
];
}
foreach ($properties as $key => $value) {
$reqValue = $this->request->getParam(str_replace(".", "-", $key));
$appValue = $this->properties[$key];