This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Two questions regarding yaml routing.yml

Discussion relating to version 1.3.x and 1.4.x

Two questions regarding yaml routing.yml

by 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:
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?
Junior Member
Posts: 8
Joined: Mon Oct 18, 2010 2:11 pm