On Thu, 20 Jan 2011 06:59:59 -0800 (PST), HAUSa <jeroen_heeft_behoefte_aan_r...@hotmail.com> wrote: > Is it possible to use other characters in a route, except only the > slash (/)? > > For example, I want to use the dash (-): > > This works: (1) /myroute/:slug/:id > Instead I want: (2) /myroute/:slug-:id > > This results in: > (1) /myroute/my-item/56 > (2) /myroute/my-item-56
How will you parse the second one ? my item-56 or my-item-56 ? I think the best solution would be to include the id in the slug and then search the item by slug (which is unique as it contains the id at the end) -- Christophe | Stof -- 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en