9d1036d6 by wang

init

1 parent aef56b4b
...@@ -164,6 +164,7 @@ class Perm extends CI_Controller { ...@@ -164,6 +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 $item = array(); 168 $item = array();
168 $item['id'] = $v->id; 169 $item['id'] = $v->id;
169 $item['name'] = $v->name; 170 $item['name'] = $v->name;
...@@ -172,7 +173,7 @@ class Perm extends CI_Controller { ...@@ -172,7 +173,7 @@ class Perm extends CI_Controller {
172 if (!$v->children || empty($v->children)) { 173 if (!$v->children || empty($v->children)) {
173 continue; 174 continue;
174 } 175 }
175 var_dump($item);exit; 176
176 $arr[] = $item; 177 $arr[] = $item;
177 // foreach ($v->children as $kk => $vv) { 178 // foreach ($v->children as $kk => $vv) {
178 // $item2 = array(); 179 // $item2 = array();
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!