0
我的數組「$ groupData」看起來是這樣的:渲染陣列中的PHP數組中的小鬍子
array(3) (
0 => array(3) (
"id" => string(1) "2"
"name" => string(20) "Super Administrators"
"permissions" => array(3) (
"system" => integer 1
"superuser" => string(1) "1"
"admin" => string(1) "1"
)
)
1 => array(3) (
"id" => string(1) "3"
"name" => string(10) "Publishers"
"permissions" => array(4) (
"system.pub.add" => integer 1
"system.pub.delete" => integer 1
"system.pub.edit" => integer 1
"system.pub.publish" => integer 1
)
)
2 => array(3) (
"id" => string(1) "4"
"name" => string(7) "Authors"
"permissions" => array(3) (
"system.pub.add" => integer 1
"system.pub.delete" => integer 1
"system.pub.edit" => integer 1
)
)
)
我無法使我的代碼permissions
部分。我曾嘗試使用{{#groupData}}{{#permissions}} {{.}} {{/permissions}}{{/groupData}}
,但它不起作用。
更改我的代碼並使用鍵/值部分。奇蹟般有效。 – Churchill