Hello
I am stuck with this problem: I want to use in a template the value returned by a variable like {{ @myVariable }} as the name of a variable. The idea is to be able to translate a string with a dict file.
Example:
in the file /dict/fr.ini, I have a row like this:
then in my template, I need to have something like:
in my database, I have a column varDictName defining the name of the variable to find in the file fr.ini, so my query return something like $row[varDictName] (whose value here is "name"), and then, in my repeat loop, I use something like:
<p>{{ @row.varDictName }}</p>
which displays:
since {{ @row.varDictName }} can't be used to retrieve automatically the good translation in the dict file. It is logical.
I can't find how I can use the string displayed by {{ @row.varDictName }} as the name of a variable like {{ @name }} and do it display:
I hope that I was clear.
Many thanks for your help.