9d074124 by wang

init

1 parent cfee78df
...@@ -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();
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!