Re: [symfony-users] how to get the pattern of a route?

2010-04-22 Thread Alan Bem
$this->getContext()->getRouting()->getCurrentRouteName() On Wed, Apr 21, 2010 at 10:51 PM, comb wrote: > Hi! > > I have two routes: > routing.yml > video_list_category_bestrated: > url: /video/category/:category_slug/bestrated > class: sfDoctrineRoute > options: { model: VideoCategory, typ

[symfony-users] how to get the pattern of a route?

2010-04-21 Thread comb
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: