Here is normal GET
request URL
http://localhost/person.php?name='Jack'&age=25&gender='male'
How to implement it to Symfony2 routing?
After test here is my solution:
acme_person_info:
pattern: /person/name/{name}/age/{age}/gender/{gender}
defaults: { _controller: AcmeUserBundle:Person:info }
class PersonController extends Controller
{
public function infoAction($name, $age, $gender)
{
// do something here
}
}