<?php /***************************************************************************** * JSONController.php * Contains the key JSON controller * * Kabuki CMS (C) 2013-2019, Aaron van Geffen *****************************************************************************/ class JSONController { protected $payload; public function showContent() { header('Content-Type: application/json; charset=utf-8'); echo json_encode($this->payload); } }