Abstract Controller
Definition at line 8 of file ARestfullController.php.
| __construct |
( |
|
$context, |
|
|
|
$params, |
|
|
|
$encode_fnc = null |
|
) |
| |
Definition at line 12 of file ARestfullController.php.
14 if (!\
Entity\Config::getConfig(null,
"restfullEnabled",
false))
15 throw new \Exception\Error404();
18 $encode_fnc = array(
"method" => json_encode,
"mime" =>
"application/json");
Definition at line 22 of file ARestfullController.php.
25 header(
"Content-Type: {$this->encode_fnc["mime
"]}");
26 echo $this->encode_fnc[
"method"]($this->
run());
The documentation for this class was generated from the following file: