在一个页面中,反复调用下面这段代码,获取不同mid分类下的文章,只显示第一次调用此方法获得的数据,其他分类也是显示第一次调用的数据。
代码: 全选
<?php $this->widget('Widget_Archive@index', 'pageSize=6&type=category', 'mid=2')->to($new); ?>
<?php while ($new->next()): ?>
<li><p class="post-title"><a href="<?php $new->permalink(); ?>" title="<?php $new->commentsNum('%d Comments'); ?>"><span><?php $new->title(); ?></span></a></p></li>
<?php endwhile; ?>
请问,各位老铁 这么正确的调用呢。谢谢。