Example of Php variable Merge


Var fields enable you to display a Php variable in your Html Template. You can display a simple variable, or an item of an Array variable, or the property of an Object variable. There are also several parameters for TBS fields which enable you to setup the display of the data item.

Php variable Var field
$amount $ [var.amount]
$task['monday'] [var.task.monday]
$obj->param [var.obj.param]

Special Var fields return data about the Template Engine.


Information Special Var field
TinyButStrong version: [var..version]
Name of the current PHP script: [var..script_name]
Name of the loaded template: [var..template_name]
Directory of the loaded template: [var..template_path]
Creation date of the loaded template: [var..template_date;frm='dd/mm/yyyy hh:nn:ss']
Current date-time: [var..now;frm='dd/mm/yyyy hh:nn:ss']