Example #1
0
 static function getJsonParam($controller, $action, $params, $method = "GET", $async = true, $encode = true)
 {
     $param = self::getParam($controller, $action, $params, $method, $async, 'json');
     if ($encode) {
         return AppJson::encode($param);
     } else {
         return $param;
     }
 }
Example #2
0
 function getResponse()
 {
     return AppJson::encode($this->_response);
 }