In my Controller I need to create annotation route and it must be the same of this :
/getservice?from=2012-06-01&to=2012-06-25
I have tried this but it’s not working
/**
* @Route("/getservice",defaults={"from" = "","to" = ""})
* @Route("/getservice?from={from}&to={to}")
* @Template()
*/
Any ideas ?
Just create a route for the getservice part and get the parameters from the GET request