Hi,

after I have generate back-office for a module of my application with 
the commande *propel:init-admin*, I have put a file module.yml in the 
folder config of my module.

Now, I would like to have access to the variables of my module.yml in 
the file generator.yml which is in the same module.


My generator.yml :
edit:
   fields:
     logo:
       type:        admin_input_image_tag
       upload_dir:  <?php echoln
sfConfig::get('mod_cmsarticle_thumbnail_logo') ?>



My module.yml :
all:
   thumbnail:
     logo: cmsArticle/logo


- The type *admin_input_image_tag* is a personnal type which work perfectly.
- The *sfConfig::get('mod_cmsarticle_thumbnail_logo')* return the good 
result only if it's execute outside generator.yml

I see only one solution, put my variable in the app.yml (because in this 
file, I can use the variable with sfConfig::get('app_*') in the 
generator.yml) but this don't seem very clean!

How can I access of the module.yml's variables in generator.yml

Best regards,
Simon

PS: I'm vrey sorry for my poor english, I'm french


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to