I have a route generated with admin generator
# apps/backend/config/routing.yml
product:
class: sfDoctrineRouteCollection
options:
model: Product
module: product
prefix_path: product
column: id
with_wildcard_routes: true
This work correctly:
<?php echo link_to('Product', '@product');?>
I want to prefix to this standard routing, a numeric value which can
serve to show not the complete list, but a list filtered according to
that value passed
# apps/backend/config/routing.yml
product:
class: sfDoctrineRouteCollection
options:
model: Product
module: product
prefix_path: product/:type_id
column: id
with_wildcard_routes: true
<?php echo link_to('Product', '@product?type_id='.$sf_params-
>get('type_id'));
Despite it seems to me conceptually correct, this procedure does not
work.
When I click on the link an error message indicates that is missing
the variable type_id, despite being passed correctly
What is wrong?
--
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en.