2008. 02. 24, vasárnap keltezéssel 15.10-kor Kiril Angov ezt írta:
> If you create the file I mentioned it will be merged into the
> application app.yml. For your information, there are many yml files
> which are not created by default because they are not commonly used
> (php.yml, module.yml, etc)

that's cool because its much easier than having to load it manually with
checkConfig.
but is it documented anywhere? because I didn't find it, that's why I
made all my project global configs with the more complicated method

greets
Zoltán Németh

> 
> 
> Kupo
> 
> On Sun, Feb 24, 2008 at 1:43 PM, Zoltán Németh
> <[EMAIL PROTECTED]> wrote:
>         
>         2008. 02. 22, péntek keltezéssel 14.44-kor Kiril Angov ezt
>         írta:
>         > The global configuration file is project/config/app.yml
>         
>         actually there is no such file.
>         there is project/apps/appname/app.yml and that is for app-wide
>         globals,
>         not project-wide globals.
>         but, as I already mentioned, you can create any config file in
>         project/config, so that could be called app.yml if you
>         wanted...
>         
>         greets
>         Zoltán Németh
>         
>         >
>         > And inside:
>         >
>         >
>         > all:
>         >   my_config: Hello
>         >
>         > and then you do sfConfig::get('app_my_config');
>         >
>         >
>         > Kupo
>         >
>         > On Fri, Feb 22, 2008 at 11:44 AM, Zoltán Németh
>         > <[EMAIL PROTECTED]> wrote:
>         >
>         >         just create a whatever.yml file in project/config
>         dir and add
>         >         this to
>         >         project/config/config_handlers.yml:
>         >
>         >         config/whatever.yml:
>         >          class: sfSimpleYamlConfigHandler
>         >
>         >         and then in your code you might use it like:
>         >
>         >         $whatever =
>         >
>         
> include(sfConfigCache::getInstance()->checkConfig(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'config/whatever.yml'));
>         >
>         >         and then you have all the config values in
>         whatever.yml in the
>         >         $whatever
>         >         array
>         >
>         >         greets
>         >         Zoltán Németh
>         >
>         >         2008. 02. 22, péntek keltezéssel 08.01-kor pihentagy
>         ezt írta:
>         >
>         >         > Hi!
>         >         >
>         >         > I'd like to have some project-global
>         configuration.
>         >         > In
>         >
>         
> http://www.symfony-project.org/book/1_0/05-Configuring-Symfony#Project%20Configuration
>         >         > it is not so much about where should I write such
>         config,
>         >         and how can
>         >         > I retrieve them, just talks about app-global
>         configs.
>         >         >
>         >         > Can sy. help me out?
>         >         > thanks
>         >         > Gergo
>         >         > >
>         >
>         >
>         >
>         >
>         >
>         >
>         >
>         > >
>         
>         
>         
> 
> 
> 
> > 


--~--~---------~--~----~------------~-------~--~----~
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