Commit 1181c1cc by Qiang Xue

Removed unused methods.

parent 79e425be
...@@ -184,21 +184,6 @@ class Response extends \yii\base\Response ...@@ -184,21 +184,6 @@ class Response extends \yii\base\Response
return $this->_headers; return $this->_headers;
} }
public function renderJson($data)
{
$this->getHeaders()->set('Content-Type', 'application/json');
$this->setContent(Json::encode($data));
$this->send();
}
public function renderJsonp($data, $callbackName)
{
$this->getHeaders()->set('Content-Type', 'text/javascript');
$data = Json::encode($data);
$this->setContent("$callbackName($data);");
$this->send();
}
/** /**
* Sends the response to the client. * Sends the response to the client.
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment