init
Showing
1 changed file
with
11 additions
and
0 deletions
| ... | @@ -88,6 +88,17 @@ class Perm extends CI_Controller { | ... | @@ -88,6 +88,17 @@ class Perm extends CI_Controller { |
| 88 | $item3['pId'] = $vv->id; | 88 | $item3['pId'] = $vv->id; |
| 89 | $arr[] = $item3; | 89 | $arr[] = $item3; |
| 90 | 90 | ||
| 91 | if (!$vvv->children || empty($vvv->children)) { | ||
| 92 | continue; | ||
| 93 | } | ||
| 94 | foreach ($vvv->children as $kkkk => $vvvv) { | ||
| 95 | $item4 = array(); | ||
| 96 | $item4['id'] = $vvvv->id; | ||
| 97 | $item4['name'] = $vvvv->name; | ||
| 98 | $item4['pId'] = $vvv->id; | ||
| 99 | $arr[] = $item4; | ||
| 100 | |||
| 101 | } | ||
| 91 | } | 102 | } |
| 92 | } | 103 | } |
| 93 | 104 | ... | ... |
-
Please register or sign in to post a comment