- README update regarding plugins

This commit is contained in:
Uwe.Tews
2010-03-08 18:06:54 +00:00
parent 54a8dcd343
commit 4b6590728e

10
README
View File

@@ -425,10 +425,12 @@ included template.
PLUGINS
=======
Smarty 3 plugins are now objects that extend Smarty_Internal_PluginBase. All
plugins have the property $this->smarty available as a reference to the Smarty
object instance. The Smarty 2 function-style plugins are still compatible, you
can drop them right into the Smarty 3 plugin directory.
Smarty3 are following the same coding rules as in Smarty2.
The only difference is that the template object is passed as additional third parameter.
smarty_plugintype_name (array $params, object $smarty, object $template)
The Smarty 2 plugins are still compatible as long as they do not make use of specific Smarty2 internals.
TEMPLATE INHERITANCE: