Exemple #1
0
 /**
  * It is routed as CLOVER_ROOT/CloverInfoTest
  * It displays request information
  */
 function index()
 {
     $assignment = array('title' => 'INDEX', 'get' => Clover::getQuery(), 'post' => Clover::getData(), 'request' => Clover::getRequest(), 'server' => Clover::getServer(), 'controller_index' => Clover::getControllerIndex(), 'controller' => Clover::getController());
     Clover::display('CloverInfoTest.htm', $assignment);
 }
Exemple #2
0
 private static function LogRequest()
 {
     $request_uri = Clover::getServer('REQUEST_URI');
     $query = Clover::getQuery();
     $data = Clover::getData();
     Clover::getLogger()->log("[REQUEST] #" . Clover::$current_task_uuid . " " . json_encode(array('request_uri' => $request_uri, 'query' => $query, 'data' => $data)));
 }