Commit 909c3464 authored by Fabien Potencier's avatar Fabien Potencier

Merge branch '1.2' into 1.3

* 1.2:
  Fix return of renderView to string
  Add mention of patch method to usage docs

Conflicts:
	doc/usage.rst
parents 193bc093 67e4a0f6
......@@ -70,7 +70,7 @@ route is matched. A route pattern consists of:
requirements for them.
* *Method*: One of the following HTTP methods: ``GET``, ``POST``, ``PUT`` or
``DELETE``. This describes the interaction with the resource.
``DELETE`` or ``PATCH``. This describes the interaction with the resource.
The controller is defined using a closure like this::
......@@ -185,6 +185,10 @@ methods on your application: ``get``, ``post``, ``put``, ``delete``::
// ...
});
$app->patch('/blog/{id}', function ($id) {
// ...
});
.. tip::
Forms in most web browsers do not directly support the use of other HTTP
......
......@@ -56,7 +56,7 @@ trait TwigTrait
* @param string $view The view name
* @param array $parameters An array of parameters to pass to the view
*
* @return Response A Response instance
* @return string The rendered view
*/
public function renderView($view, array $parameters = array())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment