Re: [SMARTY-GENERAL] Plugins problem

From: Date: Fri, 05 Apr 2002 09:21:41 +0000
Subject: Re: [SMARTY-GENERAL] Plugins problem
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3508@lists.php.net to get a copy of this message
You don¹t need to register functions in the plugin directory. Smarty does so automatically when it needs them. -bok 5/4/02 7:08 PM, Bertrand DUNOGIER banged a keyboard and produced the following weird but readable email: > Hi, > > I've moved my modifiers and functions to the 2.0 plugins architecture, > and i'm having some problems... > > I added the files : > - modifier.multiplify.php > - modifier.multiplify_advanced.php > to my plugins directory. > > The functions in these files are respectively named: > - smarty_modifier_multiplify() > - smarty_modifier_multiplify_advanced() > > I attempt to register them using > $tpl->register_modifier('multiplify', 'smarty_modifier_multiplify'); > $tpl->register_modifier('multiplify_adv', > 'smarty_modifier_multiplify_advanced'); > > When i call the multiplify_adv modifier from a template, i get the > following error message once > > Warning: Smarty plugin error: [in rubriques/rubriquestree.tpl line 4]: > modifier 'multiplify_adv' is not implemented in > /usr/local/lib/php/smarty-templates/Smarty.class.php on line 1648 > > and > Warning: call_user_func_array() expects first argument, > 'smarty_modifier_multiplify_advanced', to be a valid callback > in /usr/local/lib/php/smarty-templates/Smarty.class.php on line 1164 > everytime i use the modifier. > > Anything i'm doing wrong ? >

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