예제 #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);
 }
예제 #2
0
파일: Clover.php 프로젝트: sinri/Clover
 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)));
 }