Kohana 프레임 워크에서 RSS 피드 구문 분석을 돕는 도우미가 있음을 발견했습니다.RSS 피드 개발을 돕기위한 Kohana 내장 메서드
하나를 만드는 데 도움이되는 사람이 있습니까? Kohana 3의 Feed
클래스의 create()
방법
Kohana 프레임 워크에서 RSS 피드 구문 분석을 돕는 도우미가 있음을 발견했습니다.RSS 피드 개발을 돕기위한 Kohana 내장 메서드
하나를 만드는 데 도움이되는 사람이 있습니까? Kohana 3의 Feed
클래스의 create()
방법
채찍 그것을 다음에 그것의 코드를 확인할 수있는 것들 :
시스템/클래스/kohana/피드. PHP
define the channel information and its feed items as a minimum이 필요합니다.
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>Dark into the Narwhal</title>
<pubDate>Fri, 21 Dec 2012 13:32:42 EST</pubDate>
<description>Eating bacon, taking names and leaving fortunes</description>
<link>http://example.com/</link>
<copyright>The Narwhal Peon</copyright>
<language>en-us</language>
<ttl>7200</ttl>
<generator>KohanaPHP</generator>
<item>
<title>We journey with watermelon helmets</title>
<link>http://example.com/blog/journey-with-watermelon-helmets</link>
<description>Dawn breaks and the wind follows soon after.
We have found our supplies run low.</description>
</item>
<!-- the other posts will be here -->
</channel>
</rss>
: 당신
echo
그것을 밖으로 또는 관련 뷰에 전달할 때당신이 줄 것이다 :
그런 다음 XML을 생성하는 방법으로 데이터 연결 굉장해, 고마워! – alex