I’m using the last version of Smarty, I’m tring to register a block but I get the follow error:
Fatal error: Uncaught exception ‘SmartyException’ with message ‘Call
of unknown method ‘register_block’.
I just extended Smarty in my class and then:
$this->register_block('myTag', 'myFunction');
Why?
register_block()is Smarty2 API. You’re looking for registerPlugin() in Smarty 3. You also have the option of using the backward compatibility layer SmartyBC