This is probably because the database layer has not been loaded yet when config 
files are being parsed and loaded. As an alternative why not add your config 
parameters in code using a pre-filter? This will give you even more control 
over when these config parameters are loaded and how.

Regards

Gareth McCumskey

On Thursday 01 July 2010 14:51:14 HAUSa wrote:
> I want to use some configuration settings from the database in my
> app.yml configuration file.
> This is my code now:
> 
> all:
> <?php foreach(SettingPeer::getIndex() as $oSetting): ?>
>   <?php echo $oSetting->getSlug() . ': ' . $oSetting->getValue() ?>
> <?php endforeach; ?>
> 
> But the error I receive says "No connection information in your
> runtime configuration file for datasource [propel]"
> 
> What should I do to make this happen?
> Thanks!

-- 
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 [email protected]
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