Hi!
I have two routes:
routing.yml
video_list_category_bestrated:
url: /video/category/:category_slug/bestrated
class: sfDoctrineRoute
options: { model: VideoCategory, type: object }
param: { module: video, action: category }
requirements:
sf_method: [get]
video_list_category:
url: /video/category/:category_slug
class: sfDoctrineRoute
options: { model: VideoCategory, type: object }
param: { module: video, action: category }
requirements:
sf_method: [get]
In the executeCategory-action I now need to know, if the call is
through video_list_category or video_list_category_bestrated. The
routes may change later so that I don't want to hard-code the patterns
in the actions. How can I get the pattern of
video_list_category_bestrated?
Than I could check if this pattern matchs $this->getRoute()-
>getPattern()..
or is there even an easier way of doing this?
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
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