Directory of custom plugins vs. build-in plugins (modifiers|functions...)

From: Date: Wed, 26 Jun 2002 09:08:19 +0000
Subject: Directory of custom plugins vs. build-in plugins (modifiers|functions...)
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5021@lists.php.net to get a copy of this message
Hi, I wonder if it's possible to install custom plugins into a different directory but the build-in plugins using the plugin concept without any modifications? I'd like to see Smarty not only "automagically" recognizing/loading plugins from .../smarty/plugins/ but also from a second, easy to configure source .../mydir/custom_smarty_plugins/. Yes, I know that a small wrapper class can do the job for me: class mysmarty extends Smarty { var $my_modifier = array('mod' => '/mydir/custom_smarty_plugin/mod.php' ...) function mysmarty() {
     ...
     include_once($file);
     $this->register_modifier($mod, $mod);||||
    ...
    $this->Smarty();
} } Nevertheless I wonder if there's a more "comfortable" way (planned?). Thanks in advice, Ulf

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