我的数组“$groupData”如下所示:
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}}
,但它不起作用。