Skip to content

Commit

Permalink
Update part06.rst
Browse files Browse the repository at this point in the history
If $request is not typed there is an error : Controller "render_template" requires that you provide a value for the "$request" argument (because there is no default value or because there is a non optional argument after this one).
  • Loading branch information
revollat committed Jun 6, 2013
1 parent d802d42 commit a1336e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/part06.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Let's conclude with the new version of our framework::
use Symfony\Component\Routing;
use Symfony\Component\HttpKernel;

function render_template($request)
function render_template(Request $request)
{
extract($request->attributes->all());
ob_start();
Expand Down

0 comments on commit a1336e0

Please sign in to comment.