You dont need to define action if that symbol will always be there.
/:action means thats the action name since you defined the module i
think it should work.
did you try leaving out the action in the param entry?
lowshoe wrote:
> hi all,
>
> i'm quiet new to symfony. currently i'm fiddling around with mapping a
> dynamic url parameter to the name of an action.
> i have a module 'content' which i would like to use as default module
> for a number of actions.
> suppose i have te following actions:
>
> "/company", "/products", "/contact"
>
> per default, symfony thinks this all are module-names. but i want them
> to be handled as actions of the same module. i would like to have an
> entry like this in routes.yml:
>
> content:
> url: /:action
> param: { module: my_module, action:$action }
> requirements:
> action: "company|products|contact"
>
> but i don't know how to hand over the :action as dynamic param to
> param: {...}
>
> any ideas?
>
> regards, lowshoe
>
> >
--
Ant Cunningham
Graphic Designer | Web Developer
Vector Based Design
[email protected]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---