Re: [SMARTY-DEV] Once again, multiple plugin directories feature.
| From: | Monte Ohrt | Date: | Wed, 19 Jun 2002 04:20:42 +0000 |
| Subject: | Re: [SMARTY-DEV] Once again, multiple plugin directories feature. | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-161@lists.php.net to get a copy of this message | ||
We thought about making $plugin_dir an array of directories. As long as it doesn't cause a performance issue for those with only one directory, it might be doable. It would probably traverse the plugin dirs from top to bottom until it finds what it is looking for. But the plugins that happen on startup, should they traverse all the dirs too?
Gary Loescher wrote:
That would be a big help. Currently, I'm maintaining separate Smarty installs for each project on a box because of plugin tweaks. It would be great to have only one place to upgrade, and easier to maintain project-specific plugins. Gary-----Original Message----- From: Bertrand DUNOGIER [mailto:bdunogier@wanadoo.fr] Sent: Tuesday, June 18, 2002 5:32 PM To: smarty-dev@lists.php.net Subject: [SMARTY-DEV] Once again, multiple plugin directories feature. Hi, I'm starting over a new project, and I now feel the need of a separate plugin directory for a specific project. I don't like having one copy of Smarty per project, nor one copy of plugins per project. I remember that someone suggested once that we could have 2 plugin directories, the main one, and one that can be setup for a specific application (by instance). This way, you can develop particular plugins for a specific project, or even override the core plugins in that second directory, since it was suggested that the search order for plugin files would be 2nd directory then main directory. It would also help when upgrading Smarty, since you can be 100% sure that the files in smarty/plugins are the original ones. Any thougts ? Bertrand -- Smarty Development Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php