Name

registerDefaultPluginHandler() — register a function which gets called on undefined tags

Description

void registerDefaultPluginHandler(mixed callback);

Register a default plugin handler which gets called if the compiler can not find a definition for a tag otherwise.
It uses the following parameters:

callback defines the PHP callback. it can be either:

A string containing the function name

An array of the form array(&$object, $method) with
&$object being a reference to an
object and $method being a string
containing the method-name

An array of the form
array($class, $method) with
$class being the class name and
$method being a method of the class.

If during compilation Smarty encounters tag which is not defined internal, registered or loacted in the plugins folder it tries
to resolve it by calling the registered default plugin handler. The handler may be called several times for same undefined tag
looping over valid plugin types.