<?php $this->widget('Widget_Archive@myCustomCategory',
'type=category', 'mid=1')->to($categoryPosts); ?>
然后操作$categoryPosts这个变量即可
我把模板都弄好了才发现的。
发现70给的那段显示某一分类最新文章的代码,不能多次用。
指定一个分类了,再指定一个分类输出的还是第一个分类下内容。
版主: seita
<?php $this->widget('Widget_Archive@myCustomCategory',
'type=category', 'mid=1')->to($categoryPosts); ?>
然后操作$categoryPosts这个变量即可
<?php $this->widget('Widget_Archive@myCustomCategory',
'type=category', 'mid=1')->to($categoryPosts); ?>
然后操作$categoryPosts这个变量即可