Develop a plugin, I have a routing.yml in Plugin Dior, specify a route with sfPropelRoute.
myplugin_test: url: / myurl /: ID class: sfPropelRoute options: {model: myClass, type object, method_for_criteria: selectAvailableObj} parameter: {module: mymodule, action: show} Requirements: sf_method: [GET, POST] It works fine.
However, in my app ( apps / myapp / config / routing.yml ), I want to define an inauspicious URL, with a human meaning I do routing like this I want to:
my_profile: url: / my-super-profile class: sfRoute params: {route: @myplugin_test, id: 1} obviously That is, my syntax is not correct!
I do not think there is a route parameter in sfRoute.
You'd rather write a re writeRule for that particular URL:
RewriteReRewriteRule ^ / my-super-profile $ / myurl / 1 [L, Kyuesa]
Comments
Post a Comment