差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

themes:category-posts [2013/10/21 06:55] (当前版本)
行 1: 行 1:
 +比如想某地方调用mid=1那个分类的文章列表..怎么使用呢?​
 +例如:
 +分类id=1 分类id=2
 +文章1.. 文章1..
 +文章2.. 文章2..
 +文章3.. 文章3..
 +文章4.. 文章4..
  
 +你可以这样调用
 +<code php>
 +<?php $this->​widget('​Widget_Archive@myCustomCategory',​ '​type=category',​ '​mid=1'​)->​to($categoryPosts);​ ?>
 +</​code>​
 +然后操作$categoryPosts这个变量即可
打印/导出