Two questions regarding yaml routing.yml

Discussion relating to version 1.3.x and 1.4.x

Two questions regarding yaml routing.yml

Postby ffx » Sun Nov 11, 2012 5:11 pm

Hi again,

I have to questions regarding the routing.yml yaml file. This is a part of my routing setup:
getcontents_lang:
url: /:sf_culture/get/contents/*
requirements: { sf_culture: (?:en|es|fr|it|de|ru) }
param: { module: get, action: contents }


I would like to change the requirements for the sf_culture in the way, that all language codes or every string with strlen == 2 are allowed. Is it possible to setup this only using yaml syntax?

If I would like to match all language codes, is it possible to do this programmatically inside a filter?
ffx
Junior Member
 
Posts: 8
Joined: Mon Oct 18, 2010 2:11 pm

Return to symfony 1.3 and 1.4

Who is online

Users browsing this forum: No registered users and 6 guests