TinyButStrong - the PHP Template Engine
Categories > TinyButStrong general >

run php function with parameters in autofields

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs

By: reza
Date: 2014-11-27
Time: 09:56

run php function with parameters in autofields

please tel me that how can run a function with custom parameters send to this
thanks
By: Skrol29
Date: 2014-11-28
Time: 22:30

Re: run php function with parameters in autofields

Hi,

Your question is not that clear.

You can call a custom PHP function from a TBS template using :
- A custom onformat function. See http://www.tinybutstrong.com/manual.php#html_field_prm_onformat
    An onformat function has a spcial syntax but it can call any of your custom function.
- A method of an object referenced in ObjecrRef. See http://www.tinybutstrong.com/manual.php#php_oop