<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK IT ] // +---------------------------------------------------------------------- // | Copyright (c) 2009 http://thinkphp.cn All ri…
$list=$cate->field("id,name,pid,path,concat(path,'-',id) as bpath")->order('bpath')->select(); 所以对于前台而言,控制器已经帮忙排好序了,至于如何让它变的更清晰,count是关键 我认为count也可以以path取值,它相当于一个在排序的基础上,使分类可视化更明了的一个工具...…