diff options
Diffstat (limited to 'app/Core/Response.php')
-rw-r--r-- | app/Core/Response.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app/Core/Response.php b/app/Core/Response.php index 6534d64f..1ce42ad3 100644 --- a/app/Core/Response.php +++ b/app/Core/Response.php @@ -168,6 +168,23 @@ class Response } /** + * Send a css response + * + * @access public + * @param string $data Raw data + * @param integer $status_code HTTP status code + */ + public function css($data, $status_code = 200) + { + $this->status($status_code); + + header('Content-Type: text/css; charset=utf-8'); + echo $data; + + exit; + } + + /** * Send a binary response * * @access public |