Categories > TinyButStrong general >

tplvars with multi-dimensional array

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: LightVision
Date: 2010-03-14
Time: 13:06

tplvars with multi-dimensional array

Is there any way to define a [onload;tplvars;var..tplvars.name='1.12.27'] but with multi-dimensional array, like this:
[onload;tplvars;var..tplvars.form.name='1.12.27'] and in code to be accesible like this
$test=$TBS->TplVars;
$test[form][name]='something';
By: Skrol29
Date: 2010-03-15
Time: 09:56

Re: tplvars with multi-dimensional array

Hi,

This is not possible for now.
TplVars assigned in the template can only be a string value stored into a single item in the array $TBS->TplVars.
By: LightVision
Date: 2010-03-15
Time: 11:14

Re: tplvars with multi-dimensional array

Thank You