refactoring various classes.

This commit is contained in:
Taylor Otwell
2011-11-22 18:00:17 -06:00
parent 246434f4c7
commit 5f348b2c6e
14 changed files with 373 additions and 210 deletions

View File

@@ -235,7 +235,7 @@ class Response {
*/
public function send()
{
if ( ! headers_sent()) $this->headers();
if ( ! headers_sent()) $this->send_headers();
echo $this->render();
}
@@ -254,7 +254,7 @@ class Response {
*
* @return void
*/
public function headers()
public function send_headers()
{
if ( ! isset($this->headers['Content-Type']))
{