Creating a function, visible by all plugins
| From: | Petko Yotov | Date: | Thu, 03 Jul 2003 19:51:27 +0000 |
| Subject: | Creating a function, visible by all plugins | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9830@lists.php.net to get a copy of this message | ||
Hello,
I am writing some smarty plugins and they use the same custom function (a string manipulation). Is it possible that every plugin sees automatically the function and uses it?
I mean without writing in every plugin:
<code>
global $smarty;
include($smarty->plugins_dir . "modifier.cyr2lat.php");
</code>
Thank you for your attention.
Cheers,
Petko