Michael, Sid,
thanks very much for the quick response.
Its was a combination of typo (thanks for making a typo Michael!), not
using the full path and symfony cc
app.yml is now:
all:
mbc:
organisation_id: 1
Code is now:
$x = sfConfig::get('app_mbc_organisation_id');
Thanks again!
Sid, good to see you here.
On Thu, Sep 2, 2010 at 1:21 PM, Michael Dichirico
<[email protected]> wrote:
> I had a typo. should be an 's', not a 'z':
>
> $x = sfConfig::get('app_mbc_organisation_id');
>
> On Wed, Sep 1, 2010 at 6:19 PM, Michael Dichirico <[email protected]>
> wrote:
>>
>> Untested, but I believe this is what you need:
>> # default values
>> all:
>> .mbc:
>> organisation_id: 1
>>
>> .mail:
>> method: native
>>
>> and then:
>>
>> $x = sfConfig::get('app_mbc_organization_id');
>>
>> On Wed, Sep 1, 2010 at 6:10 PM, Jochen Daum <[email protected]> wrote:
>>>
>>> Hi,
>>>
>>> I have /config/app.yml:
>>>
>>> # You can find more information about this file on the symfony website:
>>> # http://www.symfony-project.org/reference/1_4/en/11-App
>>>
>>> # default values
>>> all:
>>> mbc:
>>> organisation_id: 1
>>>
>>> mail:
>>> method: native
>>>
>>>
>>> and in a doctrine form class, use:
>>>
>>> $x = sfConfig::get('app_mbc');
>>>
>>> But $x is always null, what do I do wrong?
>>>
>>>
>>> Kind Regards,
>>>
>>> Jochen
>>>
>>> --
>>> 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
>>
>
> --
> 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
>
--
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