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
1ba36c0c
Commit
1ba36c0c
authored
Jul 25, 2011
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed doc
parent
87a7a0ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
doc/usage.rst
doc/usage.rst
+3
-2
No files found.
doc/usage.rst
View file @
1ba36c0c
...
@@ -136,8 +136,9 @@ posts::
...
@@ -136,8 +136,9 @@ posts::
This route definition has a variable ``{id}`` part which is passed
This route definition has a variable ``{id}`` part which is passed
to the closure.
to the closure.
As you can see, we are throwing a ``NotFoundHttpException`` if the
When the post does not exist, we are using ``abort()`` to stop the request
post does not exist. We will see how to handle this later on.
early. It actually throws an exception, which we will see how to handle later
on.
Example POST route
Example POST route
~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~
...
...
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