Example #1
0
 public static function homeList($limit = 10)
 {
     $category = Category::homeList();
     foreach ($category as &$c) {
         $list = self::_list(['status' => self::STATUS_PUBLISH, 'cid' => $c['cid'], 'is_private' => 0], $limit)['list'];
         $c['list'] = $list;
     }
     return $category;
 }