mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 11:24:27 +02:00
- README update regarding plugins
This commit is contained in:
10
README
10
README
@@ -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:
|
||||
|
Reference in New Issue
Block a user