public function general()
{
$registry = json_encode((object) $this->app->memory->get("cockpit.api.registry", []));
$tokens = $this->app->db->getKey("cockpit/settings", "cockpit.api.tokens", null);
$locales = json_encode($this->app->db->getKey("cockpit/settings", "cockpit.locales", []));
$gmapskey = $this->app->db->getKey("cockpit/settings", "cockpit.gmaps.key", '');
if (!$tokens) {
$tokens = new \stdClass();
}
return $this->render('cockpit:views/settings/general.php', compact('tokens', 'registry', 'locales', 'gmapskey'));
}