Plugins problem
| From: | Bertrand DUNOGIER | Date: | Fri, 05 Apr 2002 09:08:49 +0000 |
| Subject: | Plugins problem | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-3506@lists.php.net to get a copy of this message | ||
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 ?
--
Best regards,
Bertrand mailto:bdunogier@wanadoo.fr