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
f8c6113d
Commit
f8c6113d
authored
Apr 12, 2015
by
Benjamin Ruston
Committed by
Fabien Potencier
Apr 12, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add mention of patch method to usage docs
parent
2057560b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
doc/usage.rst
doc/usage.rst
+8
-3
No files found.
doc/usage.rst
View file @
f8c6113d
...
@@ -73,9 +73,10 @@ A route pattern consists of:
...
@@ -73,9 +73,10 @@ A route pattern consists of:
pattern can include variable parts and you are able to set RegExp
pattern can include variable parts and you are able to set RegExp
requirements for them.
requirements for them.
* *Method*: One of the following HTTP methods: ``GET``, ``POST``, ``PUT`` or
* *Method*: One of the following HTTP methods: ``GET``, ``POST``, ``PUT``,
``DELETE``. This describes the interaction with the resource. Commonly only
``DELETE`` or ``PATCH``. This describes the interaction with the resource.
``GET`` and ``POST`` are used, but it is possible to use the others as well.
Commonly only ``GET`` and ``POST`` are used, but it is possible to use the
others as well.
The controller is defined using a closure like this::
The controller is defined using a closure like this::
...
@@ -201,6 +202,10 @@ methods on your application: ``get``, ``post``, ``put``, ``delete``::
...
@@ -201,6 +202,10 @@ methods on your application: ``get``, ``post``, ``put``, ``delete``::
// ...
// ...
});
});
$app->patch('/blog/{id}', function ($id) {
// ...
});
.. tip::
.. tip::
Forms in most web browsers do not directly support the use of other HTTP
Forms in most web browsers do not directly support the use of other HTTP
...
...
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