Re: [SMARTY] multiple plugin_dirs
| From: | Robert Amos | Date: | Wed, 26 Jun 2002 15:44:24 +0000 |
| Subject: | Re: [SMARTY] multiple plugin_dirs | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5035@lists.php.net to get a copy of this message | ||
heh, only half the mailing list asking for it quite a few times..
-bok
On 27/6/02 1:40 AM, Gerard Samuel banged a keyboard and produced the
following weird but readable email:
> What brought about this idea??
> I dont really understand the need for multiple plugin dirs....
>
> Monte Ohrt wrote:
>
>> I have committed changes (with help from Andreas Kossmeier) to allow
>> $plugins_dir to be an array of directories. Please help test this, try
>> every type of plugin and different combinations of plugin_dirs!
>>
>> 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?
>>
>> Also, if any of your plugins used $this->plugin_dir, they will need to
>> be updated! see the functions in the repository for an example.
>>
>> Monte
>>