Example of Php variable merge
Automatic fields ([onload] and [onshow]) enable you to display a PHP variable in your 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 | Automatic field |
---|---|
$amount | $ [onshow.amount] |
$task['monday'] | [onshow.task.monday] |
$obj->param | [onshow.obj.param] |
Special Automatic fields return data about the Template Engine.
Information | Special Automatic field |
---|---|
TinyButStrong version: | [onshow..version] |
Name of the current PHP script: | [onshow..script_name] |
Name of the loaded template: | [onshow..template_name] |
Directory of the loaded template: | [onshow..template_path] |
Creation date of the loaded template: | [onshow..template_date;frm='dd/mm/yyyy hh:nn:ss'] |
Current date-time: | [onshow..now;frm='dd/mm/yyyy hh:nn:ss'] |