init
Showing
1 changed file
with
2 additions
and
1 deletions
| ... | @@ -170,10 +170,11 @@ class Perm extends CI_Controller { | ... | @@ -170,10 +170,11 @@ class Perm extends CI_Controller { |
| 170 | $item['name'] = $v->name; | 170 | $item['name'] = $v->name; |
| 171 | $item['pId'] = 0; | 171 | $item['pId'] = 0; |
| 172 | $item['open'] = true; | 172 | $item['open'] = true; |
| 173 | var_dump($item);exit; | ||
| 173 | if (!$v->children || empty($v->children)) { | 174 | if (!$v->children || empty($v->children)) { |
| 174 | continue; | 175 | continue; |
| 175 | } | 176 | } |
| 176 | var_dump($item);exit; | 177 | |
| 177 | $arr[] = $item; | 178 | $arr[] = $item; |
| 178 | // foreach ($v->children as $kk => $vv) { | 179 | // foreach ($v->children as $kk => $vv) { |
| 179 | // $item2 = array(); | 180 | // $item2 = array(); | ... | ... |
-
Please register or sign in to post a comment