Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jan 9, 2012
1 parent 358b4c8 commit 1473eec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions book/part4.rst
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,13 @@ impact. Want to know how to use the generator? Insanely easy::

$generator = new Routing\Generator\UrlGenerator($routes, $context);

echo $generator->generate('hello', array('name' => 'Fabien));
echo $generator->generate('hello', array('name' => 'Fabien'));
// outputs /hello/Fabien

The code should be self-explanatory; and thanks to the context, you can even
generate absolute URLs::

echo $generator->generate('hello', array('name' => 'Fabien), true);
echo $generator->generate('hello', array('name' => 'Fabien'), true);
// outputs something like http://example.com/somewhere/hello/Fabien

.. tip::
Expand Down

0 comments on commit 1473eec

Please sign in to comment.