Re: [SMARTY-DEV] Re: Compiling config files & alternative config files format

From: Date: Tue, 03 Dec 2002 14:19:23 +0000
Subject: Re: [SMARTY-DEV] Re: Compiling config files & alternative config files format
References: 1 2 3  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-367@lists.php.net to get a copy of this message
Compiling the config vars statically could be done, there is just a level of complexity with recompiling. Currently, only the timestamp from the original template is tested. Since config vars can be used from any parent or child template, you'd have to track the whole heirarchy of config files to test if something changed. Smarty's caching already does this btw, so use caching when possible. Monte On Tue, 2002-12-03 at 02:51, Bertrand DUNOGIER wrote: > AR> not all people do install PHP with expat XML parser and there are some > AR> web space providers which don't use it too. So you would need to implement > AR> your own XML parser which is definitly too slow > AR> (http://sourceforge.net/projects/phpxd > AR> for example is really great). > AR> I don't think it's a good idea to use XML exclusively but perhaps as an > AR> alternative format. > AR> So the developer could choose if he want's XML or Plaintext. > Yes, it's what i think too. > > Many hosts run expat, and when you run a professionnal projet, you can choose > the modules you're using. > > Since Config_File.class.php does not look complex, it might be easy to write an > alternative config file parser that could load the config vars from an XML file. > A SQL datasource could be handy too :) > > I'm waiting for a comment from Andrei or Monte regarding the caching. > > Bertrand -- Monte Ohrt <monte@ispi.net>

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