pics/controllers/JSONController.php

19 lines
452 B
PHP
Raw Permalink Normal View History

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