Re: [SMARTY] Re: [SMARTY-GENERAL] Plugindir

From: Date: Tue, 09 Apr 2002 21:17:53 +0000
Subject: Re: [SMARTY] Re: [SMARTY-GENERAL] Plugindir
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3598@lists.php.net to get a copy of this message
On Tue, 09 Apr 2002, Andreas Kossmeier wrote: > ...and this checking of file_existance and storing the location of the > plugin file could be moved into the compilation process (maybe except > output filters) No, it can't. Consider what happens, with your suggestion, when a template uses modifier 'foo' and the modifier is implemented as a plugin. At compilation time you check for plugin's existence and when _load_plugins() is called it will only load the file without checking for anything. It will work fine the first time, but subsequently the compilation does not happen until the template is updated. The plugin file, however, may have been removed and now _load_plugin() will produce a bunch of PHP error messages. -Andrei "Everything is a matter of a little programming" -- Rasmus Lerdorf

« previous php.smarty.general (#3598) next »