db = $db; } /* 递归获得所有栏目 */ function getAllCategory($hide = 0){ $sql = "SELECT c.* FROM news_category c WHERE display>0 ORDER BY displayorder asc"; $re = $this->db->query($sql); $categorys = $re->fetchAll(); return $categorys; } }