a4c0de4b by yangjianbin

init

1 parent 1b542228
......@@ -74,10 +74,21 @@ class Perm extends CI_Controller {
$arr[] = $item;
foreach ($v->children as $kk => $vv) {
$item2 = array();
$item2['id'] = $v->id;
$item2['name'] = $v->name;
$item2['id'] = $vv->id;
$item2['name'] = $vv->name;
$item2['pId'] = $v->id;
$arr[] = $item2;
if (!$vv->children || empty($vv->children)) {
continue;
}
foreach ($v->children as $kkk => $vvv) {
$item3 = array();
$item3['id'] = $vvv->id;
$item3['name'] = $vvv->name;
$item3['pId'] = $vv->id;
$arr[] = $item3;
}
}
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!