X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2Fsmarty3-templates.md;h=599e3597e7554baf2e3c53dc3b3f262e6165832d;hb=f13b8f8ec4d0ad12e68b7bfa3fb5f5c04d6b1172;hp=d44f263255fcece30edb561288355cfab92f28a5;hpb=c8ecc3140534b4138db4eea415685f85bc56a5e0;p=friendica.git diff --git a/doc/smarty3-templates.md b/doc/smarty3-templates.md index d44f263255..599e3597e7 100644 --- a/doc/smarty3-templates.md +++ b/doc/smarty3-templates.md @@ -20,10 +20,10 @@ Templates that are only used by addons shall be placed in the directory. -To render a template use the function *get_markup_template* to load the template and *replace_macros* to replace the macros/variables in the just loaded template file. +To render a template use the function *getMarkupTemplate* to load the template and *replaceMacros* to replace the macros/variables in the just loaded template file. - $tpl = get_markup_template('install_settings.tpl'); - $o .= replace_macros($tpl, array( ... )); + $tpl = Renderer::getMarkupTemplate('install_settings.tpl'); + $o .= Renderer::replaceMacros($tpl, array( ... )); the array consists of an association of an identifier and the value for that identifier, i.e.