Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
b0def74c
Commit
b0def74c
authored
Jan 20, 2015
by
Parham Doustdar
Committed by
Fabien Potencier
Apr 11, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update usage.rst
parent
01e359a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
doc/usage.rst
doc/usage.rst
+3
-3
No files found.
doc/usage.rst
View file @
b0def74c
...
@@ -262,7 +262,7 @@ closure arguments match the names of the variable parts::
...
@@ -262,7 +262,7 @@ closure arguments match the names of the variable parts::
// ...
// ...
});
});
While it's not recommend, you could also do this (note the switched
While it's not recommend
ed
, you could also do this (note the switched
arguments)::
arguments)::
$app->get('/blog/{postId}/{commentId}', function ($commentId, $postId) {
$app->get('/blog/{postId}/{commentId}', function ($commentId, $postId) {
...
@@ -284,8 +284,8 @@ You can also ask for the current Request and Application objects::
...
@@ -284,8 +284,8 @@ You can also ask for the current Request and Application objects::
// ...
// ...
});
});
Route Variable
s
Converters
Route Variable Converters
~~~~~~~~~~~~~~~~~~~~~~~~~
~
~~~~~~~~~~~~~~~~~~~~~~~~~
Before injecting the route variables into the controller, you can apply some
Before injecting the route variables into the controller, you can apply some
converters::
converters::
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment