动态密钥
问题描述:
为了访问HTML网页上,已以PHP脚本创建一个数组,我们这样做{{@somearray['somevalue']}}
。动态密钥
我们如何处理的情况是关键('somevalue'
)是从一些其他的阵列{{@someotherarray['someotherindex'}}
获得(即在{{@someotherarray['someotherindex']}}
= somevalue
价值)?
我使用F3版本2.1.x.
答
这已被固定在3.x和2.x版本中不工作
语法在3.X是:{{@[email protected]@field}}
+0
我通过改变业务逻辑完全采用了不同的方法。感谢你的回答 :) – Ankur 2013-04-17 10:11:40
只是一个猜测,你有没有试过'{{@somearray [{{@ someotherarray [ 'someotherindex']}}]}}'? – HamZa 2013-04-09 07:53:56
是的,先生。输出到浏览器是']}}'。 – Ankur 2013-04-09 08:01:36
另一种猜测:P'{{@index = @someotherarray [ 'someotherindex']}} {{@somearray [@index]}}' – HamZa 2013-04-09 08:40:11