pics/controllers/JSONController.php

19 lines
452 B
PHP

<?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);
}
}