init
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -164,7 +164,7 @@ class Perm extends CI_Controller { | ... | @@ -164,7 +164,7 @@ class Perm extends CI_Controller { |
| 164 | $arr = array(); | 164 | $arr = array(); |
| 165 | 165 | ||
| 166 | foreach ($data as $k => $v) { | 166 | foreach ($data as $k => $v) { |
| 167 | var_dump($v);exit; | 167 | |
| 168 | $item = array(); | 168 | $item = array(); |
| 169 | $item['id'] = $v->id; | 169 | $item['id'] = $v->id; |
| 170 | $item['name'] = $v->name; | 170 | $item['name'] = $v->name; |
| ... | @@ -173,7 +173,7 @@ class Perm extends CI_Controller { | ... | @@ -173,7 +173,7 @@ class Perm extends CI_Controller { |
| 173 | if (!$v->children || empty($v->children)) { | 173 | if (!$v->children || empty($v->children)) { |
| 174 | continue; | 174 | continue; |
| 175 | } | 175 | } |
| 176 | 176 | var_dump($item);exit; | |
| 177 | $arr[] = $item; | 177 | $arr[] = $item; |
| 178 | // foreach ($v->children as $kk => $vv) { | 178 | // foreach ($v->children as $kk => $vv) { |
| 179 | // $item2 = array(); | 179 | // $item2 = array(); | ... | ... |
-
Please register or sign in to post a comment