you can either put that stuff into settings.xml and have sth like <settings prefix="myapp."> <setting name="email_admin">...</setting> </settings> (you can also use xinclude to have the actual directives in a different file if you prefer that)
or you define a config file in cconfig_handlders.xml with AgaviReturnArrayConfigHandler and then use it in your code like this: $cfg = include(AgaviConfigCache::checkConfig(...)); note that such a file must use <configurations> and <configuration> elements, everything else is up to you, and plural tags or multiple identical tags will be transformed into a numeric array for easy iteration David P.S: I'm a bit busy right now, can't look at the caching problems before 5pm or so, sorry Am 23.02.2007 um 12:20 schrieb Van Daele, Koen: > Hi, > > What's changed in that regard? With Agavi 0.10 I used the > DefineConfigHandler a lot, but that seems to be gone. Is there a good > way to get to some global constants like EMAIL_ADMIN, > BASE_URL_FOR_EXTERNAL_LINK, ... > > Do I need to write my own ConfigHandler or is there a better way? > > Koen > > _______________________________________________ > users mailing list > [email protected] > http://lists.agavi.org/mailman/listinfo/users > _______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
