mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 11:54:26 +02:00
- README update regarding plugins
This commit is contained in:
10
README
10
README
@@ -425,10 +425,12 @@ included template.
|
|||||||
PLUGINS
|
PLUGINS
|
||||||
=======
|
=======
|
||||||
|
|
||||||
Smarty 3 plugins are now objects that extend Smarty_Internal_PluginBase. All
|
Smarty3 are following the same coding rules as in Smarty2.
|
||||||
plugins have the property $this->smarty available as a reference to the Smarty
|
The only difference is that the template object is passed as additional third parameter.
|
||||||
object instance. The Smarty 2 function-style plugins are still compatible, you
|
|
||||||
can drop them right into the Smarty 3 plugin directory.
|
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:
|
TEMPLATE INHERITANCE:
|
||||||
|
Reference in New Issue
Block a user