register_resourcevoid register_resourcestring namearray resource_funcs
Use this to dynamically register a resource plugin with Smarty.
Pass in the name of the resource and the array of PHP functions
implementing it. See
template resources
for more information on how to setup a function for fetching
templates.
register_resource
$smarty->register_resource("db", array("db_get_template",
"db_get_timestamp",
"db_get_secure",
"db_get_trusted"));