Re: [SMARTY-DEV] Re: config_load removed from core

From: Date: Sun, 20 Apr 2003 19:21:04 +0000
Subject: Re: [SMARTY-DEV] Re: config_load removed from core
References: 1 2 3 4  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1238@lists.php.net to get a copy of this message
There is no new behavior. The code was moved from the core to a plugin, that is all. The core is leaner, the config_load code is more flexible to adapt. The "type" example I gave does not exist, you would have to write it. config_load may have some new features in the future though, I'm still giving that embedded var principle a thought. This may be useful to support, I run into this problem a lot when handling form error messages. I think this can be accomplished without the overhead of eval(). Monte On Sun, 2003-04-20 at 14:07, Tom Sommer wrote: > On 20 Apr 2003 13:54:54 -0500, Monte Ohrt wrote: > > > I don't have any written on-hand. But for example, if you wanted to > > support a new config file format such as one in php.ini format, you > > could do this: > > > {config_load file="foo.conf" format="ini"} > > > ... and the plugin could use php's built-in ini file functions to load > > values. > > I see.... What does this new behavior mean on the php level? > > > -- > Tom Sommer, Denmark > www.tsn.dk - www.dreamcoder.dk -- Monte Ohrt <monte@ispi.net>

« previous php.smarty.dev (#1238) next »