diff --git a/docs/en/programmers/plugins.xml b/docs/en/programmers/plugins.xml index e58a5e9b..4e69859b 100644 --- a/docs/en/programmers/plugins.xml +++ b/docs/en/programmers/plugins.xml @@ -122,8 +122,13 @@ (as is the case with some plugins bundled with Smarty), then the proper way to load the needed plugin is this: - -require_once $smarty->_get_plugin_filepath('function', 'html_options'); + +_get_plugin_filepath('function', 'html_options'); +?> +]]> + As a general rule, Smarty object is always passed to the plugins as the last parameter (with two exceptions: modifiers do not get