changed header to data

This commit is contained in:
Tao Wu 2012-07-28 13:58:11 +02:00
parent 9268b1eb4e
commit a497a3efcb
1 changed files with 4 additions and 3 deletions

View File

@ -54,9 +54,10 @@ #### Returning a custom response:
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:
@ -257,4 +258,4 @@ #### Generating a 404 error response:
#### Generating a 500 error response:
return Response::error('500');
return Response::error('500');