init
Showing
1 changed file
with
11 additions
and
0 deletions
| ... | @@ -115,8 +115,19 @@ class Perm extends CI_Controller { | ... | @@ -115,8 +115,19 @@ class Perm extends CI_Controller { |
| 115 | $item6['name'] = $vvvvvv->name; | 115 | $item6['name'] = $vvvvvv->name; |
| 116 | $item6['pId'] = $vvvvv->id; | 116 | $item6['pId'] = $vvvvv->id; |
| 117 | $arr[] = $item6; | 117 | $arr[] = $item6; |
| 118 | if (!$vvvvvv->children || empty($vvvvvv->children)) { | ||
| 119 | continue; | ||
| 120 | } | ||
| 121 | foreach ($vvvvvv->children as $k7 => $v7) { | ||
| 122 | $item7 = array(); | ||
| 123 | $item7['id'] = $v7->id; | ||
| 124 | $item7['name'] = $v7->name; | ||
| 125 | $item7['pId'] = $v7->id; | ||
| 126 | $arr[] = $item7; | ||
| 118 | } | 127 | } |
| 119 | } | 128 | } |
| 129 | |||
| 130 | } | ||
| 120 | } | 131 | } |
| 121 | } | 132 | } |
| 122 | } | 133 | } | ... | ... |
-
Please register or sign in to post a comment