Commit a9805e95 authored by Kris Wallsmith's avatar Kris Wallsmith Committed by Fabien Potencier

Updated README with RESTful syntax.

parent c621e23a
...@@ -9,10 +9,14 @@ Silex is a simple web framework to develop simple websites: ...@@ -9,10 +9,14 @@ Silex is a simple web framework to develop simple websites:
use Silex\Framework; use Silex\Framework;
$framework = new Framework(array( $framework = new Framework(array(
'/hello/:name' => function ($name) 'GET /hello/:name' => function($name)
{ {
return new Response('Hello '.$name); return new Response('Hello '.$name);
}, },
'POST /goodbye/:name' => function($name)
{
return new Response('Goodbye '.$name);
},
)); ));
$framework->handle()->send(); $framework->handle()->send();
......
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