Re: Global.conf

Albert Lash <alby-8/[email protected]> Fri, 22 Jul 2005 09:00:37 -0400 (EDT)
Newsgroups gmane.comp.lib.nexista.devel
Message-ID <[email protected]>
You are right, I guess I was asking why paths are hardcoded as they are. I
would not be able to access the config:: function from xsl, without using
the php functionality, i.e. config is not in flow?

I read the docs and it says that if a mode is set then config::getSection
will try to get the mode that is set, but if I have two sections dev and
live, it gets live even though in the builder the mode is set to dev.

Thanks Joshua, what sort of projects are you working on now?

Albert

On Thu, 21 Jul 2005, Joshua wrote:

> On Thursday 21 July 2005 11:04, Albert Lash wrote:
> > Or master.conf...
>
> It doesn't create a constant. Only on some things like paths. It makes a
> concatenated config which can be accessed using the Config class.
> Eventually it will turn into a serialize array file file I think.
>
> So you can add anything and get it using the config::get (I think -- check
> docs) method.
>
> J
> > Foundry parses this in a manual manner, creating a constant for each
> > directive. Can this be done dynamically, so that if there is an entry, a
> > constant (supplied by gloabal.xml or master.xml) is created. That way, if
> > you edit the structure of global.xml, you don't have to update foundry.php
> > as well.
> >
> >
> > Thoughts?
> >
> > Al
>