6517be39 by wang

init

1 parent c9583235
...@@ -173,34 +173,34 @@ class Perm extends CI_Controller { ...@@ -173,34 +173,34 @@ class Perm extends CI_Controller {
173 continue; 173 continue;
174 } 174 }
175 $arr[] = $item; 175 $arr[] = $item;
176 foreach ($v->children as $kk => $vv) { 176 // foreach ($v->children as $kk => $vv) {
177 $item2 = array(); 177 // $item2 = array();
178 $item2['id'] = $vv->id; 178 // $item2['id'] = $vv->id;
179 $item2['name'] = $vv->name; 179 // $item2['name'] = $vv->name;
180 $item2['pId'] = $v->id; 180 // $item2['pId'] = $v->id;
181 $item2['open'] = true; 181 // $item2['open'] = true;
182 $arr[] = $item2; 182 // $arr[] = $item2;
183 if (!$vv->children || empty($vv->children)) { 183 // if (!$vv->children || empty($vv->children)) {
184 continue; 184 // continue;
185 } 185 // }
186 foreach ($vv->children as $kkk => $vvv) { 186 // foreach ($vv->children as $kkk => $vvv) {
187 $item3 = array(); 187 // $item3 = array();
188 $item3['id'] = $vvv->id; 188 // $item3['id'] = $vvv->id;
189 $item3['name'] = $vvv->name; 189 // $item3['name'] = $vvv->name;
190 $item3['pId'] = $vv->id; 190 // $item3['pId'] = $vv->id;
191 $item3['open'] = true; 191 // $item3['open'] = true;
192 $arr[] = $item3; 192 // $arr[] = $item3;
193 193 //
194 if (!$vvv->children || empty($vvv->children)) { 194 // if (!$vvv->children || empty($vvv->children)) {
195 continue; 195 // continue;
196 } 196 // }
197 foreach ($vvv->children as $kkkk => $vvvv) { 197 // foreach ($vvv->children as $kkkk => $vvvv) {
198 $item4 = array(); 198 // $item4 = array();
199 $item4['id'] = $vvvv->id; 199 // $item4['id'] = $vvvv->id;
200 $item4['name'] = $vvvv->name; 200 // $item4['name'] = $vvvv->name;
201 $item4['pId'] = $vvv->id; 201 // $item4['pId'] = $vvv->id;
202 $item4['open'] = true; 202 // $item4['open'] = true;
203 $arr[] = $item4; 203 // $arr[] = $item4;
204 // if (!$vvvv->children || empty($vvvv->children)) { 204 // if (!$vvvv->children || empty($vvvv->children)) {
205 // continue; 205 // continue;
206 // } 206 // }
...@@ -243,9 +243,9 @@ class Perm extends CI_Controller { ...@@ -243,9 +243,9 @@ class Perm extends CI_Controller {
243 // } 243 // }
244 // 244 //
245 // } 245 // }
246 } 246 // }
247 } 247 // }
248 } 248 // }
249 249
250 } 250 }
251 var_dump($arr);exit; 251 var_dump($arr);exit;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!