mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-30 22:48:19 +08:00
Removed unused methods.
This commit is contained in:
@@ -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.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user