<?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>FVN Tech Blog &#187; Zend Framework</title>
	<atom:link href="http://blog.feuvan.net/tag/zend-framework/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.feuvan.net</link>
	<description>Advertisement Platform &#124; Mobile &#124; Interoperability &#124; Coding in C#, JavaScript, Obj-C, PHP &#124; Linux, Mac OSX, Windows Server Backend &#124; Misc ...</description>
	<lastBuildDate>Mon, 16 Jan 2012 14:53:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Zend Framework前瞻（二）：0.2.0的新变化</title>
		<link>http://blog.feuvan.net/2006/11/06/64-zend-framework-preview-new-changes-in-0-2-0.html</link>
		<comments>http://blog.feuvan.net/2006/11/06/64-zend-framework-preview-new-changes-in-0-2-0.html#comments</comments>
		<pubDate>Sun, 05 Nov 2006 17:30:01 +0000</pubDate>
		<dc:creator>feuvan</dc:creator>
				<category><![CDATA[Default]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://feuvan.net/wordpress/?p=64</guid>
		<description><![CDATA[本文内容已经不能适应当前 Zend Framework 版本（0.9+），请参阅更新的文章。20070407 0.2.0增加了以下内容 Zend_Cache以文件，sqlite数据库或memcache为后端，通过ID和tag来标示数据，可以设定过期期限（以秒为单位），可以自动序列化（因此可以缓存任何数据）。Zend_Cache类本身是一个工厂类，可以定制cache内容（前端）为Output，File，Function 和 Class。不过，你可以用Zend_Cache_Core作为统一的访问方式。以下是一个官方手册的例子require_once 'Zend/Cache.php';$frontendOptions = array( 'lifeTime' =&#62; 7200,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // cache lifetime of 2 hours&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'automaticSerialization' =&#62; true);$backendOptions = array( 'cacheDir' =&#62; './tmp/'&#160;&#160; &#160;// Directory where to put the cache files);&#160;&#160;&#160; // getting a Zend_Cache_Core &#8230; <a href="http://blog.feuvan.net/2006/11/06/64-zend-framework-preview-new-changes-in-0-2-0.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<blockquote><p>本文内容已经不能适应当前 Zend Framework 版本（0.9+），请参阅更新的文章。20070407</p></blockquote>
<p>0.2.0增加了以下内容  </p>
<p>Zend_Cache<br />以文件，sqlite数据库或memcache为后端，通过ID和tag来标示数据，可以设定过期期限（以秒为单位），可以自动序列化（因此可以缓存任何数据）。<br />Zend_Cache类本身是一个工厂类，可以定制cache内容（前端）为Output，File，Function 和 Class。<br />不过，你可以用Zend_Cache_Core作为统一的访问方式。以下是一个官方手册的例子<br /><code><br />require_once 'Zend/Cache.php';<br />$frontendOptions = array( 'lifeTime' =&gt; 7200,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // cache lifetime of 2 hours<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'automaticSerialization' =&gt; true);<br />$backendOptions = array( 'cacheDir' =&gt; './tmp/'<br />&nbsp;&nbsp; </code><code>&nbsp;// Directory where to put the cache files);<br />&nbsp;&nbsp;&nbsp; // getting a Zend_Cache_Core object<br />$cache =<br />Zend_Cache::factory('Core', 'File', $frontendOptions, $backendOptions);<br /></code><br />更多说明在此<br /><a href="http://framework.zend.com/manual/en/zend.cache.html">http://framework.zend.com/manual/en/zend.cache.html</a> <br />需要注意的是不同缓存的 id 不能重复，否则会有串扰，lol</p>
<p>Zend_Config<br />专门用于存储在文本中的配置处理<br />由 Zend_Config_Array，Zend_Config_Ini 和 Zend_Config_Xml 这三个有共同 父类 Zend_Config 的子类组成<br />ini 和 xml 可能用得会多点<br />看看官方例子就知道怎么用了<br /><a href="http://framework.zend.com/manual/en/zend.config.html">http://framework.zend.com/manual/en/zend.config.html</a><br />不过，这些类不是用来保存配置<br />Zend 官方说保存配置这件事情不归 ZF 管  </p>
<p>Zend_Feed<br />现在用不着什么 lastRSS 之类的 homemade产品了<br />Zend_Feed_RSS 和 Zend_Feed_Atom ……或者就用 Zend_Feed 就可以帮你解析 feed<br />从网页中找到rss feed，修改节点内容，还可以输出为xml…… ZF 官方站点的rss feed就是用Zend_Feed 输出的<br />解析 feed 最简单<br />$feed = Zend_Feed::import($url);<br />&#8230;Zend_Feed::importFile($filename);<br />&#8230;Zend_Feed::importString($feedstring);<br />然后就rss内容就在$feed里了  </p>
<p>Zend Google Data Client Library<br />与一系列 Google 服务交互的 APIs<br />Google Base, Calendar, Blogger, and CodeSearch 等等<br />这部分需要单独下载<br /><a href="http://framework.zend.com/download/gdata">http://framework.zend.com/download/gdata</a></p>
<p>其他还有 Zend_Acl, Zend_Registry, Zend_Session 等<br />但还未进入 stable 的状态，暂时不介绍了</p>
<p>Zend_Controller, Zend_View这块的 MVC 架构在 0.2.0 重新实现了<br />具体细节我还没有看，稍后为您介绍</p>
<p>另外现在 Zend Framework需要 PHP5.1.4 以上版本<br />建议用最新（20061106）的 PHP 5.2.0 规避一个htmlentity的缓冲区溢出漏洞</p>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2Fblog.feuvan.net%2F2006%2F11%2F06%2F64-zend-framework-preview-new-changes-in-0-2-0.html&amp;title=Zend+Framework%E5%89%8D%E7%9E%BB%EF%BC%88%E4%BA%8C%EF%BC%89%EF%BC%9A0.2.0%E7%9A%84%E6%96%B0%E5%8F%98%E5%8C%96" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.reddit.com/submit?url=http%3A%2F%2Fblog.feuvan.net%2F2006%2F11%2F06%2F64-zend-framework-preview-new-changes-in-0-2-0.html&amp;title=Zend+Framework%E5%89%8D%E7%9E%BB%EF%BC%88%E4%BA%8C%EF%BC%89%EF%BC%9A0.2.0%E7%9A%84%E6%96%B0%E5%8F%98%E5%8C%96" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.feuvan.net%2F2006%2F11%2F06%2F64-zend-framework-preview-new-changes-in-0-2-0.html&amp;title=Zend+Framework%E5%89%8D%E7%9E%BB%EF%BC%88%E4%BA%8C%EF%BC%89%EF%BC%9A0.2.0%E7%9A%84%E6%96%B0%E5%8F%98%E5%8C%96" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fblog.feuvan.net%2F2006%2F11%2F06%2F64-zend-framework-preview-new-changes-in-0-2-0.html&amp;headline=Zend+Framework%E5%89%8D%E7%9E%BB%EF%BC%88%E4%BA%8C%EF%BC%89%EF%BC%9A0.2.0%E7%9A%84%E6%96%B0%E5%8F%98%E5%8C%96" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dzone.com/links/add.html?title=Zend+Framework%E5%89%8D%E7%9E%BB%EF%BC%88%E4%BA%8C%EF%BC%89%EF%BC%9A0.2.0%E7%9A%84%E6%96%B0%E5%8F%98%E5%8C%96&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2006%2F11%2F06%2F64-zend-framework-preview-new-changes-in-0-2-0.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.facebook.com/sharer.php?t=Zend+Framework%E5%89%8D%E7%9E%BB%EF%BC%88%E4%BA%8C%EF%BC%89%EF%BC%9A0.2.0%E7%9A%84%E6%96%B0%E5%8F%98%E5%8C%96&amp;u=http%3A%2F%2Fblog.feuvan.net%2F2006%2F11%2F06%2F64-zend-framework-preview-new-changes-in-0-2-0.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://delicious.com/save?title=Zend+Framework%E5%89%8D%E7%9E%BB%EF%BC%88%E4%BA%8C%EF%BC%89%EF%BC%9A0.2.0%E7%9A%84%E6%96%B0%E5%8F%98%E5%8C%96&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2006%2F11%2F06%2F64-zend-framework-preview-new-changes-in-0-2-0.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dotnetkicks.com/kick/?title=Zend+Framework%E5%89%8D%E7%9E%BB%EF%BC%88%E4%BA%8C%EF%BC%89%EF%BC%9A0.2.0%E7%9A%84%E6%96%B0%E5%8F%98%E5%8C%96&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2006%2F11%2F06%2F64-zend-framework-preview-new-changes-in-0-2-0.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://dotnetshoutout.com/Submit?title=Zend+Framework%E5%89%8D%E7%9E%BB%EF%BC%88%E4%BA%8C%EF%BC%89%EF%BC%9A0.2.0%E7%9A%84%E6%96%B0%E5%8F%98%E5%8C%96&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2006%2F11%2F06%2F64-zend-framework-preview-new-changes-in-0-2-0.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2006%2F11%2F06%2F64-zend-framework-preview-new-changes-in-0-2-0.html&amp;title=Zend+Framework%E5%89%8D%E7%9E%BB%EF%BC%88%E4%BA%8C%EF%BC%89%EF%BC%9A0.2.0%E7%9A%84%E6%96%B0%E5%8F%98%E5%8C%96&amp;summary=&amp;source=" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.technorati.com/faves?add=http%3A%2F%2Fblog.feuvan.net%2F2006%2F11%2F06%2F64-zend-framework-preview-new-changes-in-0-2-0.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://twitter.com/home?status=Reading+http%3A%2F%2Fblog.feuvan.net%2F2006%2F11%2F06%2F64-zend-framework-preview-new-changes-in-0-2-0.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.google.com/buzz/post?url=http%3A%2F%2Fblog.feuvan.net%2F2006%2F11%2F06%2F64-zend-framework-preview-new-changes-in-0-2-0.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://blog.feuvan.net/2006/11/06/64-zend-framework-preview-new-changes-in-0-2-0.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

