Everywhere: Add config and cache page

Add config database table and enable crud page.
Also add cache controller, model and view and routes for these pages.

Make the JavaScript display a message when changing the state of
development mode.
This commit is contained in:
Riyyi
2021-08-27 16:15:03 +02:00
parent 2dee309279
commit 077e4c434c
8 changed files with 261 additions and 39 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
namespace App\Model;
use App\Traits\Log;
class ConfigModel extends Model {
use Log;
protected $table = 'config';
protected $sort = 'key';
public $title = "Config";
// Attribute rules
// Name | Type | Required | Filtered
public $rules = [
["key", "text", 1, 0],
["value", "text", 0, 0],
["log_id", "text", 1, 1],
];
}