Permalink
Browse files

Change wording (#679)

  • Loading branch information...
hurry-man authored and dg committed Feb 20, 2018
1 parent 8bf14ad commit 6f49525923abbb1faf9f3a2c3cfd321f61f72969
Showing with 2 additions and 2 deletions.
  1. +1 −1 cs/routing.texy
  2. +1 −1 en/routing.texy
@@ -265,7 +265,7 @@ $route = new Route('<presenter=Homepage>/<action=default>/<id=>');
$route = new Route('[<presenter=Homepage>/[<action=default>/[<id>]]]');
\--

Pokud bychom chtěli ovlivnit chování zpětných lomítek, aby se např. místo `'/homepage/'` generovalo jen `/homepage`, lze toho docílit takto:
Pokud bychom chtěli ovlivnit chování koncového lomítka, aby se např. místo `/homepage/` generovalo jen `/homepage`, lze toho docílit takto:

/--php
$route = new Route('[<presenter=Homepage>[/<action=default>[/<id>]]]');
@@ -269,7 +269,7 @@ $route = new Route('<presenter=Homepage>/<action=default>/<id=>');
$route = new Route('[<presenter=Homepage>/[<action=default>/[<id>]]]');
\--

If we would like to change how the rightmost slashes are generated, that is instead of `/homepage/` get a `/homepage`, we can adjust the route:
To change how the rightmost slash is generated, i.e. instead of `/homepage/` get a `/homepage`, adjust the route this way:

/--php
$route = new Route('[<presenter=Homepage>[/<action=default>[/<id>]]]');

0 comments on commit 6f49525

Please sign in to comment.