测试用例: $c = $this->getModel('category'); $c->init(1); $m = $this->getModel('category'); $filter = array('parentid'=>1); $orderby = array('id desc'); //print_r($m->getList($filter, $orderby, 0, 2)); print_r($m->getSubCategories(1));