Hello I'm trying to send multiple parameters from twig like this
<a href={{path('myRoute',{'param1':param1,'param2':param2})}}>Link</a>
I have declare my controller as follows:
/**
* @Route("/categoria/{param1}", name="categoria")
*/
public function taskAction($param1){
}
But how can I send the second parameter and not including it in the route, so far what happens is that I get a rout like this
/categoria/param1?param2=1
and i expect a route like
/categoria/param1
and be able to access the second parameter but I don't want the second parameter appears in the route.