|
本帖最后由 smallhe 于 2013-4-1 13:41 编辑
Array | | ( | | [0] => Array | | ( | | [id] => 46 | | [gid] => 9 | | [title] => 北京美食 | | => [url]http://www.cnsaturn.com/ | | [sort] => 1 | | [views] => 1 | | [status] => 1 | | [type] => 食品 | | [group] => 1 | | [top] => 0 | | ) | |
| | [1] => Array | | ( | | [id] => 41 | | [gid] => 9 | | [title] => 北京食品 | | => [url]http://www.mac120.com/ | | [sort] => 1 | | [views] => 1 | | [status] => 1 | | [type] => 食品 | | [group] => 1 | | [top] => 0 | | ) | |
| | [2] => Array | | ( | | [id] => 40 | | [gid] => 8 | | [title] => 北京购物 | | => [url]http://www.mac120.com/ | | [sort] => 1 | | [views] => 1 | | [status] => 1 | | [type] => 购物 | | [group] => 1 | | [top] => 0 | | ) | |
| | [3] => Array | | ( | | [id] => 38 | | [gid] => 6 | | [title] => 宜昌大酒店 | | [url] => dajiudian.com | | [sort] => 1 | | [views] => 1 | | [status] => 1 | | [type] => 餐饮 | | [group] => 1 | | [top] => 0 | | ) | |
| | [4] => Array | | ( | | [id] => 37 | | [gid] => 6 | | [title] => 宜昌饭店 | | [url] => fandian.com | | [sort] => 1 | | [views] => 1 | | [status] => 1 | | [type] => 餐饮 | | [group] => 1 | | [top] => 0 | | ) | |
| | ) |
目前数组就是这样。我想在模板上循环后渲染成:
食品: 北京食品 北京美食
购物 :北京购物
餐饮:北京大酒店 北京饭店
|
|