Browse Source

Removed unused methods.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
1181c1cc1b
  1. 15
      framework/yii/web/Response.php

15
framework/yii/web/Response.php

@ -184,21 +184,6 @@ class Response extends \yii\base\Response
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.
*/

Loading…
Cancel
Save