diff --git a/docs/en/programmers.xml b/docs/en/programmers.xml index fc5b60f0..16e78ed5 100644 --- a/docs/en/programmers.xml +++ b/docs/en/programmers.xml @@ -707,20 +707,19 @@ $smarty->clear_all_cache(); $smarty->clear_assign("Name"); // clear multiple variables -$smarty->clear_assign(array("Name","Address","Zip")); +$smarty->clear_assign(array("Name","Address","Zip")); + clear_cache - - - void clear_cache - string template - string cache id - string compile id - int expire time - - + + voidclear_cache + stringtemplate + stringcache id + stringcompile id + stringexpire time + This clears the cache for a specific template. If you have multiple caches for this template, you can clear a specific @@ -744,14 +743,12 @@ $smarty->clear_cache("index.tpl","CACHEID"); clear_compiled_tpl - - - void clear_compiled_tpl - string tpl_file - string compile_id - int exp_time - - + + voidclear_compiled_tpl + stringtpl_file + stringcompile_id + stringexp_time + This clears the compiled version of the specified template resource, or all compiled template files if one is not specified. @@ -773,12 +770,10 @@ $smarty->clear_compiled_tpl(); clear_config - - - void clear_config - string var - - + + voidclear_config + stringvar + This clears all assigned config variables. If a variable name is supplied, only that variable is cleared. @@ -795,13 +790,11 @@ $smarty->clear_config('foobar'); config_load - - - void config_load - string file - string section - - + + voidconfig_load + stringfile + stringsection + This loads config file data and assigns it to the template. This works identical to the template config_load('my.conf','foobar'); display - - - void display - string template - string cache_id - string compile_id - - + + voiddisplay + stringtemplate + stringcache_id + stringcompile_id + This displays the template. Supply a valid template resource @@ -910,14 +901,12 @@ $smarty->display("db:header.tpl"); fetch - - - string fetch - string template - string cache_id - string compile_id - - + + stringfetch + stringtemplate + stringcache_id + stringcompile_id + This returns the template output instead of displaying it. Supply a valid get_config_vars - - - array get_config_vars - string varname - - + + arrayget_config_vars + stringvarname + This returns the given loaded config variable value. If no parameter is given, an array of all loaded config variables is returned. @@ -1024,12 +1011,10 @@ function smarty_block_foo($params, &$smarty) { get_template_vars - - - array get_template_vars - string varname - - + + arrayget_template_vars + stringvarname + This returns the given assigned variable value. If no parameter is given, an array of all assigned variables is returned.