From 4d2ecdbff2fc8a7e9262079dd4fd9e0c3ca53b93 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 28 Apr 2012 14:01:10 -0500 Subject: [PATCH] Tweaking response->render() location. --- laravel/laravel.php | 13 +++++++++++++ laravel/response.php | 2 -- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/laravel/laravel.php b/laravel/laravel.php index e093dcf0..cd5bbc13 100644 --- a/laravel/laravel.php +++ b/laravel/laravel.php @@ -124,6 +124,19 @@ $response = Request::$route->call(); +/* +|-------------------------------------------------------------------------- +| "Render" The Response +|-------------------------------------------------------------------------- +| +| The render method evaluates the content of the response and converts it +| to a string. This evaluates any views and sub-responses within the +| content and sets the raw string result as the new response. +| +*/ + +$response->render(); + /* |-------------------------------------------------------------------------- | Persist The Session To Storage diff --git a/laravel/response.php b/laravel/response.php index f552ad67..49c8fda0 100644 --- a/laravel/response.php +++ b/laravel/response.php @@ -184,8 +184,6 @@ public static function prepare($response) */ public function send() { - $this->render(); - $this->cookies(); $this->foundation->prepare(Request::foundation());