Permalink
Browse files

renderText now works, same as renderString

  • Loading branch information...
beaucollins committed Apr 23, 2012
1 parent 56dc266 commit c5c3e8ce152d39f15aa0f38ef677c58cc1caa6cf
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Phluid/Response.php
View
@@ -60,6 +60,10 @@ public function renderString( $string, $content_type="text/plain", $status = 200
$this->setHeader( 'Content-Type', $content_type );
}
+ public function renderText( $string, $content_type="text/plain", $status = 200 ){
+ $this->renderString( $string, $content_type, $status );
+ }
+
public function renderJSON( $object, $status = 200 ){
$this->renderString( json_encode($object), "application/json", $status );
}

0 comments on commit c5c3e8c

Please sign in to comment.