I have problem in routing in symfony.
I have a function
public function showresultsAction($product)
that need the object $product to run.
I try to call that Action with the following line:
$product = $form ->get('product');
return $this->redirect($this->generateUrl('_gs_downloads_product', array(
'object' => $product)));
When I run my application, I obtain:
Controller ProductController::showresultsAction()" requires that you provide a value
for the "$product" argument (because there is no default value or because there is a
non optional argument after this one).
Thank you for your help.
My route definition:
_gs_downloads_product:
path: /download/list/product
defaults: { _controller: AcmeProjectBundle:Product:showresults}