Browse Source

changes binding data variable to an array

Tao Wu 12 years ago
parent
commit
0dd1af665f
1 changed files with 1 additions and 2 deletions
  1. 1 2
      laravel/documentation/views/home.md

+ 1 - 2
laravel/documentation/views/home.md

@@ -56,8 +56,7 @@ Sometimes you will need a little more control over the response sent to the brow
 
 
 #### Returning a custom response containing a view, with binding data:
 #### Returning a custom response containing a view, with binding data:
 
 
-	$data = array('foo' => 'bar');
-	return Response::view('home', $data);
+	return Response::view('home', array('foo' => 'bar'));
 
 
 #### Returning a JSON response:
 #### Returning a JSON response: