937fdcbf by yangjianbin

init

1 parent 8802a88a
......@@ -290,6 +290,7 @@ class Perm extends CI_Controller {
$r['id'] = $v->id;
$r['name'] = $v->name;
$r['pId'] = 0;
$r['checked'] = $v->checked;
$arr2[] = $r;
if (!$v->children || empty($v->children)) {
continue;
......@@ -299,11 +300,12 @@ class Perm extends CI_Controller {
$r2['id'] = $v2->id;
$r2['name'] = $v2->name;
$r2['pId'] = $v->id;
$r2['checked'] = $v2->checked;
$arr2[] = $r2;
}
}
var_dump($arr2);exit;
// var_dump($arr2);exit;
foreach ($arr as $k => $v) {
foreach ($arr2 as $k2 => $v2) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!