Categories > TinyButStrong general >

Problem with variables

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Victor
Date: 2015-05-07
Time: 16:02

Problem with variables

Hello,

Forgive my ignorance, I guess my mistake should be ridiculously childish, but I have not found a solution for it.

I tried to edit the files in the folder "demo" of OpenTBS in order to create a .odt that fits to my needs.

The problem is that I can not make the final file display the contents of my variables.

It just displays the variables already in the demo as "yourname" but does not display a variable created by me in .php.

I think the problem is in defining these new variables. Then I ask: how do I create them? And where should I put them? (in "demo_merge.php", in "demo_oo_text.php" or elsewhere?)
By: Skrol29
Date: 2015-05-12
Time: 01:26

Re: Problem with variables

Hi,

Create a variable in PHP, like $this_is_a_variable
Then you can display it in th template using [onshow.this_is_a_variable]

See also http://www.tinybutstrong.com/examples.php?e=hello&m=result