介面 yii\web\ResponseFormatterInterface
實作於 | yii\web\HtmlResponseFormatter, yii\web\JsonResponseFormatter, yii\web\XmlResponseFormatter |
---|---|
自版本起可用 | 2.0 |
原始碼 | https://github.com/yiisoft/yii2/blob/master/framework/web/ResponseFormatterInterface.php |
ResponseFormatterInterface 指定了在回應送出前,格式化回應所需的介面。
方法詳情
格式化指定的響應。
public abstract void format ( $response ) | ||
$response | yii\web\Response |
要格式化的響應。 |
public function format($response);
註冊 或 登入 以進行評論。