|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
steki Smarty n00b
Joined: 16 Dec 2010 Posts: 1
|
Posted: Thu Dec 16, 2010 1:09 pm Post subject: smarty 3.0.6: failed to find class Smarty_Internal_filter |
|
|
Hallo,
i receive to following message when trying to register a user defined block.
class Smarty_Internal_filter not found
the code that produces this error is:
Code: |
function smarty_trim($params, $content, $smarty, &$repeat, $template) {
if (isset($content)) {
$chars = sv(@$params['chars'], ',');
return trim($content, $chars);
}
}
|
the tempalte looks like :
Code: |
{afTrim chars=","}test, {$e.testvar}, {/afTrim}
|
the function ist registered with :
Code: |
$sm = new Smarty();
$sm->registerPlugin('block', 'afTrim', 'smarty_trim');
|
any hint for me on how to solve this problem?
thanks
stefan |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Thu Dec 16, 2010 3:37 pm Post subject: |
|
|
Note that with the offical release of Smarty3 the $smarty and $template object have been merged as parameter in plugin functions.
See http://www.smarty.net/docs/en/plugins.block.functions.tpl
Did you delete all existing compiled and cache files after upgrading?
If you still have this error provide the trace information. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|