Browse Source

changed header to data

Tao Wu 12 years ago
parent
commit
a497a3efcb
1 changed files with 4 additions and 3 deletions
  1. 4 3
      laravel/documentation/views/home.md

+ 4 - 3
laravel/documentation/views/home.md

@@ -54,9 +54,10 @@ Sometimes you will need a little more control over the response sent to the brow
 		return Response::make('Hello World!', 200, $headers);
 		return Response::make('Hello World!', 200, $headers);
 	});
 	});
 
 
-#### Returning a custom response containing a view:
+#### Returning a custom response containing a view, with binding data:
 
 
-	return Response::view('home', $headers);
+	$data = array('foo' => 'bar');
+	return Response::view('home', $data);
 
 
 #### Returning a JSON response:
 #### Returning a JSON response:
 
 
@@ -257,4 +258,4 @@ To generating proper error responses simply specify the response code that you w
 
 
 #### Generating a 500 error response:
 #### Generating a 500 error response:
 
 
-	return Response::error('500');
+	return Response::error('500');