symfony - Symfony2 load conditional configuration -


i started symfony2, i'm still noob.

i need load config file (yml) based on either request uri, or specific route.

e.g

/{dynamicroute} 

should load dynamicroute.yml

and

/{anotherdynamicroute} 

should load anotherdynamicroute.yml

(hope makes sense)

update:

basically want to this:

we have 1 backend system our clients can log in. there can set facebook applications. i'm using fosfacebookbundle users can connect facebook. fosfacebookbundle requires facebook settings set in config.yml, because have multiple facebook applications running of 1 system, can't put facebook settings in config.yml.

so thinking load client specific configuration based on route. example create route this:

// src\acme\mybundle\controller\democontroller.php /**  * @route("/client/{client_id}")  */ public function indexaction($client_id) {     // load client specific data 

so when user loads specific client's page, want load yml configuration facebook details specific client, users can register facebook te client's facebook details using fosfacebookbundle


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -