<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>臭皮匠 &#187; ZendFramework</title>
	<atom:link href="http://guogoul.com/tag/zendframework/feed/" rel="self" type="application/rss+xml" />
	<link>http://guogoul.com</link>
	<description></description>
	<lastBuildDate>Fri, 29 Oct 2010 00:24:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Zend Framework 常用模块(3)</title>
		<link>http://guogoul.com/2008/04/20/zendframework_3/</link>
		<comments>http://guogoul.com/2008/04/20/zendframework_3/#comments</comments>
		<pubDate>Sun, 20 Apr 2008 15:02:39 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[ZendFramework]]></category>

		<guid isPermaLink="false">http://www.guogoul.com/2008/04/20/zendframework_3/</guid>
		<description><![CDATA[1.Zend_Filter
1.1.用于过滤输出,对于web开发者来说非常有用,常用于过滤一些特殊的HTML字符
举个例子:
filter(&#8217;&#38;&#8217;); // &#38;
  echo $htmlEntities-&#62;filter(&#8217;&#8221;&#8216;); // &#34;
1.2.过滤器链
通常，多个过滤器可以以一个特定的顺序应用到某个值上。
addFilter(new Zend_Filter_Alpha()) -&#62;addFilter(newZend_Filter_StringToLower());
// Filter the username
$username = $filterChain-&#62;filter($_POST['username']);
先通过Zend_Filter_Alpha移动任何非英文字符.然后进行大小写转化.
1.3如何编写一个过滤器

编写定制的过滤器很容易，只要实现Zend_Filter_Interface接口。
addFilter(new MyFilter());
?&#62;
2.Zend_Pdf 用于处理pdf的模块
创建与加载用例:
save($fileName, true);
// Save document as a new file
$pdf-&#62;save($newFileName);
// Return PDF document as a string.
$pdfString = $pdf-&#62;render();
//pdf 页面管理
// Add new page
$pdf-&#62;pages[] = new Zend_Pdf_Page(Zend_Pdf_Page::SIZE_A4);
// Add new page
$pdf-&#62;pages[] = $pdf-&#62;newPage(Zend_Pdf_Page::SIZE_A4);
&#8230;.
?&#62;
以上只是一些基本的pdf的操作.如果有兴趣,可以查阅详细资料,包括draw之类的操作
]]></description>
		<wfw:commentRss>http://guogoul.com/2008/04/20/zendframework_3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Framework 常用模块(2)</title>
		<link>http://guogoul.com/2008/04/17/zendframework-2/</link>
		<comments>http://guogoul.com/2008/04/17/zendframework-2/#comments</comments>
		<pubDate>Thu, 17 Apr 2008 14:59:22 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[ZendFramework]]></category>

		<guid isPermaLink="false">http://www.guogoul.com/2008/04/17/zendframework-2/</guid>
		<description><![CDATA[1.Zend_Feed 这个玩意儿是个好东西！现在RSS流行，用他解析feed事半功倍以下摘自API文档: Zend_Feed提供了处理的 RSS 和 Atom Feed的功能。它提供了一套自然的方法用于 访问Feed元素、属性、和条目属性。 除此之外Zend_Feed还扩展提供了同样简单的方法 用于修改feed和条目的结构，并将结果转化成XML格式。不久的将来这些扩展可能会被 Atom Publishig Protocol(AtomPP)所支持。 Zend_Feed由一个Zend_Feed基类、一个Zend_Feed_Abstract抽象类以及一个用于表示Feed和条目的Zend_Feed_Entry_Abstract基类组成。这些类封装了 RSS 和 Atom 的feed和条目特性的，提供了一套自然的方法使他们用起来变得异常简单。 再来看一个例子:
 getMessage()}\n&#8221;;
 exit;
}// 初始化保存 channel 数据的数组
$channel = array( &#8216;title&#8217; =&#62; $slashdotRss-&#62;title(), &#8216;
link&#8217; =&#62; $slashdotRss-&#62;link(),
 &#8216;description&#8217; =&#62; $slashdotRss-&#62;description(),
&#8216;items&#8217; =&#62; array() );
// 循环获得channel的item并存储到相关数组中
foreach ($slashdotRss as $item) {
$channel['items'][] = array( &#8216;title&#8217; =&#62; $item-&#62;title(),
 &#8216;link&#8217; =&#62; $item-&#62;link(),
 &#8216;description&#8217; =&#62; $item-&#62;description());
}?&#62;
Zend_Feed导入Feed的方法总结

 // [...]]]></description>
		<wfw:commentRss>http://guogoul.com/2008/04/17/zendframework-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Framework 常用模块(1)</title>
		<link>http://guogoul.com/2008/04/16/zendframework-1/</link>
		<comments>http://guogoul.com/2008/04/16/zendframework-1/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 15:11:58 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[ZendFramework]]></category>

		<guid isPermaLink="false">http://www.guogoul.com/2008/04/16/zendframework-1/</guid>
		<description><![CDATA[用了一段时候的ZF,发现zf是一个非常好用的php编程框架
现在把ZF中个人觉得十分不错的模块简单介绍一下.希望对初学者有所帮助
1.Zend_Cache
cache十分灵活,提供了多种前端的cache方法,以及多种后台的数据保存手段,本人十分喜欢这个模块.前端可缓存:Output,File,Function,class,都是派生自Zend_Cache_Core.后台缓存方式可以是File, Sqlite, Memcache&#8230;
简单的调用方式:
 7200, // cache lifetime of 2 hours
&#8216;automaticSerialization&#8217; =&#62; true);
$backendOptions = array( &#8216;cacheDir&#8217; =&#62; &#8216;./tmp/&#8217; // Directory where to put the cache files
);
// 取得一个Zend_Cache_Core 对象
$cache = Zend_Cache::factory(&#8217;Core&#8217;, &#8216;File&#8217;, $frontendOptions, $backendOptions);
if(!$result = $cache-&#62;load(&#8217;myresult&#8217;)) { // 缓存不命中;连接到数据库
$db = Zend_Db::factory( [...] );
$result = $db-&#62;fetchAll(&#8217;SELECT * FROM huge_table&#8217;);
$cache-&#62;save($result, &#8216;myresult&#8217;); } else {
 // cache hit! shout so [...]]]></description>
		<wfw:commentRss>http://guogoul.com/2008/04/16/zendframework-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

