Re: [SMARTY] multiple plugin_dirs

From: Date: Thu, 27 Jun 2002 07:35:32 +0000
Subject: Re: [SMARTY] multiple plugin_dirs
References: 1  Groups: php.smarty.dev php.smarty.general 
Request: Send a blank email to php-smarty-dev+get-176@lists.php.net to get a copy of this message
Monte Ohrt wrote:
It works like so: loop through plugin dirs { try to find $plugin_dir . $plugin_file if not found and is a relative path { try to find SMARTY_DIR . $plugin_dir . $plugin_file if not found {
      Try finding $plugin_dir.$plugin_file from PHP include_path
} } } Does this sound good?
Quite OK for me. Looking at all the guys crying for maximum performance (no I don't belive one should tune the template itself to max) you should consider an if condition and two loops: if extended plugin search is enabled { try the above algorithm } else { do it the old way } By the way: I can set the $plugin_file on per plugin base and use it to referr to files stored in different directories, can I? Ulf

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