9533ca50 by yangjianbin

init

1 parent 07ecca20
...@@ -97,7 +97,26 @@ class Perm extends CI_Controller { ...@@ -97,7 +97,26 @@ class Perm extends CI_Controller {
97 $item4['name'] = $vvvv->name; 97 $item4['name'] = $vvvv->name;
98 $item4['pId'] = $vvv->id; 98 $item4['pId'] = $vvv->id;
99 $arr[] = $item4; 99 $arr[] = $item4;
100 100 if (!$vvvv->children || empty($vvvv->children)) {
101 continue;
102 }
103 foreach ($vvvv->children as $kkkkk => $vvvvv) {
104 $item5 = array();
105 $item5['id'] = $vvvvv->id;
106 $item5['name'] = $vvvvv->name;
107 $item5['pId'] = $vvvv->id;
108 $arr[] = $item5;
109 if (!$vvvvv->children || empty($vvvvv->children)) {
110 continue;
111 }
112 foreach ($vvvvv->children as $kkkkkk => $vvvvvv) {
113 $item6 = array();
114 $item6['id'] = $vvvvvv->id;
115 $item6['name'] = $vvvvvv->name;
116 $item6['pId'] = $vvvvv->id;
117 $arr[] = $item6;
118 }
119 }
101 } 120 }
102 } 121 }
103 } 122 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!