forked from Public/pics
Initial commit.
This is to be the new HashRU website based on the Aaronweb.net/Kabuki CMS.
This commit is contained in:
21
controllers/JSONController.php
Normal file
21
controllers/JSONController.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/*****************************************************************************
|
||||
* JSONController.php
|
||||
* Contains the key JSON controller
|
||||
*
|
||||
* Kabuki CMS (C) 2013-2015, Aaron van Geffen
|
||||
*****************************************************************************/
|
||||
|
||||
/**
|
||||
* The abstract class that allows easy creation of json replies.
|
||||
*/
|
||||
class JSONController
|
||||
{
|
||||
protected $payload;
|
||||
|
||||
public function showContent()
|
||||
{
|
||||
header('Content-Type: text/json; charset=utf-8');
|
||||
echo json_encode($this->payload);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user