2013-04-09 120 views
-1

爲了訪問HTML網頁上,已以PHP腳本創建一個數組,我們這樣做{{@somearray['somevalue']}}動態密鑰

我們如何處理的情況是關鍵('somevalue')是從一些其他的陣列{{@someotherarray['someotherindex'}}
獲得(即在{{@someotherarray['someotherindex']}} = somevalue價值)?

我使用F3版本2.1.x.

+0

只是一個猜測,你有沒有試過'{{@somearray [{{@ someotherarray [ 'someotherindex']}}]}}'? – HamZa 2013-04-09 07:53:56

+0

是的,先生。輸出到瀏覽器是']}}'。 – Ankur 2013-04-09 08:01:36

+0

另一種猜測:P'{{@index = @someotherarray [ 'someotherindex']}} {{@somearray [@index]}}' – HamZa 2013-04-09 08:40:11

回答

3

這已被固定在3.x和2.x版本中不工作

語法在3.X是:{{@[email protected]@field}}

+0

我通過改變業務邏輯完全採用了不同的方法。感謝你的回答 :) – Ankur 2013-04-17 10:11:40