TWCMS实现遍历所有频道及下面的分类

$cate_arrs = $run->category->find_fetch();
foreach($cate_arrs as $v){if($v['upid']==0){
$v['flist']=$run->category->find_fetch(array('upid'=>$v['cid']));
$parrs[]=$v;		
	}	
	}	// hook kp_block_listeach_after.php

	return array('ret'=>$ret,'parrs'=>$parrs);
posted @ 2023-08-20 15:43  浅岛连云  阅读(14)  评论(0编辑  收藏  举报