/** * Send result back to client * as JSONP string * * @return string */ protected function sendResult() { /** * @todo check and see if we have to manually call urldecode * on the value. Not sure if we going to get raw urlencoded value or not */ $callback = $_GET['callback']; d('$callback: ' . $callback); Responder::sendJSONP(array('ac' => $this->aData), $callback); }
/** * Send result back to client * as JSONP string * * @return string */ protected function sendResult() { $callback = $this->Request->get('callback'); d('$callback: ' . $callback); Responder::sendJSONP(array('ac' => $this->aData), $callback); }