摘要:
function getTree($data, $pId) { $tree = ''; foreach($data as $k => $v) { if($v['cate_ParentId'] == $pId) { //父亲找到儿子 $v['cate_ParentId'] = getTree($data... 阅读全文
摘要:
if (! $validate->check($params)) { return json(array( "info" => $this->error($validate->getError()) ));//这里要用json处理下 } 阅读全文