From 576f63a97045ce8c54a864b62bd68402e6d1dff7 Mon Sep 17 00:00:00 2001 From: andrey Date: Wed, 20 Feb 2002 22:47:02 +0000 Subject: [PATCH] *** empty log message *** --- docs.sgml | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/docs.sgml b/docs.sgml index bb9a576a..054667e9 100644 --- a/docs.sgml +++ b/docs.sgml @@ -6250,7 +6250,7 @@ s m o k e r s a r e p. . . unregister_* API functions. - For the plugins are registered at runtime the name of the plugin + For the plugins that are registered at runtime, the name of the plugin function does not have to follow the naming convention. @@ -6260,8 +6260,6 @@ s m o k e r s a r e p. . . require_once SMARTY_DIR . 'plugins/function.html_options.php'; - - As a rule, Smarty object is always passed to the plugins as the last parameter. @@ -6298,9 +6296,10 @@ require_once SMARTY_DIR . 'plugins/function.html_options.php'; - - function plugin with output - + + + function plugin with output + <?php /* * Smarty plugin @@ -6323,9 +6322,19 @@ function smarty_function_eightball($params, &$smarty) $result = array_rand($answers); echo $answers[$result]; } -?&rt; +?> + which can be used in the template as: + + +Question: +Answer: {eightball}. + + + + + function plugin without output @@ -6355,10 +6364,12 @@ function smarty_function_assign($params, &$smarty) $smarty->assign($var, $value); } -?&rt; +?> - + + + modifiers