for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Controllers\Ajax;
//to call, require /ajax/debug/'action'
use Core\AjaxController;
class Debug extends AjaxController
{
public function test()
$referer = $this->request->getReferer();
$host = $this->request->getBaseUrl();
$jsonData = [
"Referer" => $referer,
"https" => $host,
"Message" => 'Ok message sent'
];
$result = $this->jsonResponse($jsonData);
echo $result;
}