Skip to content
This repository has been archived by the owner on Jul 4, 2018. It is now read-only.

Commit

Permalink
Merge branch '1.2' into 1.3
Browse files Browse the repository at this point in the history
* 1.2:
  Fix return of renderView to string
  Add mention of patch method to usage docs

Conflicts:
	doc/usage.rst
  • Loading branch information
fabpot committed May 1, 2015
2 parents 193bc09 + 67e4a0f commit 909c346
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion doc/usage.rst
Expand Up @@ -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::

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Silex/Application/TwigTrait.php
Expand Up @@ -56,7 +56,7 @@ public function render($view, array $parameters = array(), Response $response =
* @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())
{
Expand Down

0 comments on commit 909c346

Please sign in to comment.