void smarty_resource_userdb_fetch(
$tpl_name, &$tpl_source, &$smarty, [ $default = false])
|
|
Smarty plugin
------------------------------------------------------------- Type: resource Name: userdb Purpose: read user maintained source as a template $tpl_name is parsed as a uri type of string where the path to the template field is encoded as:
table/source_field?field=condtional&field=conditional...
results in: SELECT source_field FROM table WHERE conditions... -------------------------------------------------------------
Parameters
| |
$tpl_name |
|
| |
&$tpl_source |
|
| |
&$smarty |
|
| |
$default |
|
void smarty_resource_userdb_timestamp(
$tpl_name, &$tpl_timestamp, &$smarty)
|
|
------------------------------------------------------------- pass current time back to smarty.
no need to make sql query since template will be updated in the database and local compiled template will be deleted automatically forcing smarty to reload template again form database -------------------------------------------------------------
Parameters
| |
$tpl_name |
|
| |
&$tpl_timestamp |
|
| |
&$smarty |
|