zvcvore 1.3.4发布

zvcore 1.3.4发布了。给大家带来了新的功能:rss输出类库。使用方法非常简单!
class rssAction extends Action {
    public function index() {
        $channelTitle = "Netroby的博客!";
        $channelLink = "http://www.netroby.cn";
        $channelDescription = "Netroby是一个php程序员,他研究php,mysql,apache等技术,通过博客与朋友们分享技术心得和人生感悟!";
        $rss = new zrss($channelTitle, $channelLink, $channelDescription);
        $items = $this->db->queryAndCache("select * from zv_article order by publishtime desc limit 100;");
        foreach ($items as $item) {
            $rss->buildItem($item['title'], 'Netroby',"http://www.netroby.cn/article-".$item['id'].".html", $item['description'], $item['publishtime']);
        }
        
        $rss->showRss();
    }
}

相关文章

留一言