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!
Si
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
wrote:
> Untested, but I believe this is what you need:
>
> # default values
> all:
> .mbc:
> organisation_id: 1
>
> .mail:
> method: native
>
>
Have you clear-cache? e.g.: ./symfony cc after the app.yml is updated?
Or may be you mean to do:
sfConfig::get('app_mbc_organisation_id');
On Thu, Sep 2, 2010 at 1:10 PM, Jochen Daum wrote:
> Hi,
>
> I have /config/app.yml:
>
> # You can find more information about this file on the symfony webs
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 wrote:
> Hi,
>
> I have /config/app.yml:
>
> # You can find more
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('a