<?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>PHP Frameworks &#187; Zend Framework</title>
	<atom:link href="http://www.phpframeworks.com/news/p/category/zend-framework/feed" rel="self" type="application/rss+xml" />
	<link>http://www.phpframeworks.com/news</link>
	<description>We compare all kinds of PHP frameworks and help you choose the right php framework for your project.</description>
	<lastBuildDate>Sat, 11 Feb 2012 16:20:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>lexa-tools framework for PHP 5.3</title>
		<link>http://www.phpframeworks.com/news/p/29587/lexa-tools-framework-for-php-5-3</link>
		<comments>http://www.phpframeworks.com/news/p/29587/lexa-tools-framework-for-php-5-3#comments</comments>
		<pubDate>Sat, 04 Jun 2011 05:50:22 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Benchmark]]></category>
		<category><![CDATA[Codeigniter]]></category>
		<category><![CDATA[Development tools]]></category>
		<category><![CDATA[Industry News]]></category>
		<category><![CDATA[Introduction]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[New Frameworks Report]]></category>
		<category><![CDATA[PHP Ajax Framework]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Top 10 PHP Frameworks]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[php framework comparison]]></category>
		<category><![CDATA[best php framework]]></category>
		<category><![CDATA[fastest php framework]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[lexa-tools]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php framework]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[which is the best php framework]]></category>

		<guid isPermaLink="false">http://www.phpframeworks.com/news/?p=29587</guid>
		<description><![CDATA[<p><a href="http://www.phpframeworks.com/news/p/29587/lexa-tools-framework-for-php-5-3">lexa-tools framework for PHP 5.3</a> is a post from: <a href="http://www.phpframeworks.com/">PHP Frameworks</a></p>
lexa-tools framework for PHP 5.3 is a post from: PHP Frameworks
lexa-tools library is not as much a framework as a set of utililies (tools). You are free to organize the site as you’d like. No special folder structure is required. No need to declare any classes. No config files and no magic conventions. The library [...]]]></description>
		<wfw:commentRss>http://www.phpframeworks.com/news/p/29587/lexa-tools-framework-for-php-5-3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SkullPuppy: The Zend-Compatible Framework</title>
		<link>http://www.phpframeworks.com/news/p/24984/skullpuppy-the-zend-compatible-framework</link>
		<comments>http://www.phpframeworks.com/news/p/24984/skullpuppy-the-zend-compatible-framework#comments</comments>
		<pubDate>Wed, 30 Mar 2011 22:55:42 +0000</pubDate>
		<dc:creator>mei-chris</dc:creator>
				<category><![CDATA[MVC]]></category>
		<category><![CDATA[New Frameworks Report]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.phpframeworks.com/news/?p=24984</guid>
		<description><![CDATA[<p><a href="http://www.phpframeworks.com/news/p/24984/skullpuppy-the-zend-compatible-framework">SkullPuppy: The Zend-Compatible Framework</a> is a post from: <a href="http://www.phpframeworks.com/">PHP Frameworks</a></p>
SkullPuppy: The Zend-Compatible Framework is a post from: PHP Frameworks
I just finished putting up a copy of my PHP Application Framework on Source Forge and am looking for developers to test it out and send feedback:
SkullPuppy is a PHP5.3 application framework that provides an extensible  architecture for rapid development, maintenance, and deployment of PHP [...]]]></description>
		<wfw:commentRss>http://www.phpframeworks.com/news/p/24984/skullpuppy-the-zend-compatible-framework/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EuropaPHP: A feather-weight, extremely-fast, diverse, scalable and productive PHP5 MVC framework.</title>
		<link>http://www.phpframeworks.com/news/p/10083/europaphp-a-feather-weight-extremely-fast-diverse-scalable-and-productive-php5-mvc-framework</link>
		<comments>http://www.phpframeworks.com/news/p/10083/europaphp-a-feather-weight-extremely-fast-diverse-scalable-and-productive-php5-mvc-framework#comments</comments>
		<pubDate>Fri, 14 May 2010 00:46:24 +0000</pubDate>
		<dc:creator>treshugart</dc:creator>
				<category><![CDATA[New Frameworks Report]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.phpframeworks.com/news/?p=10083</guid>
		<description><![CDATA[<p><a href="http://www.phpframeworks.com/news/p/10083/europaphp-a-feather-weight-extremely-fast-diverse-scalable-and-productive-php5-mvc-framework">EuropaPHP: A feather-weight, extremely-fast, diverse, scalable and productive PHP5 MVC framework.</a> is a post from: <a href="http://www.phpframeworks.com/">PHP Frameworks</a></p>
EuropaPHP: A feather-weight, extremely-fast, diverse, scalable and productive PHP5 MVC framework. is a post from: PHP Frameworks
EuropaPHP is an extremely fast, flexible and easy-to-use PHP5 MVC framework. It&#8217;s open source and licensed under the BSD. It is designed to provide a fast and simple MVC API without constraining you to a specific tool-set. Drop in the [...]]]></description>
		<wfw:commentRss>http://www.phpframeworks.com/news/p/10083/europaphp-a-feather-weight-extremely-fast-diverse-scalable-and-productive-php5-mvc-framework/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Framework Architecture</title>
		<link>http://www.phpframeworks.com/news/p/6781/zend-framework-architecture</link>
		<comments>http://www.phpframeworks.com/news/p/6781/zend-framework-architecture#comments</comments>
		<pubDate>Fri, 05 Mar 2010 12:22:43 +0000</pubDate>
		<dc:creator>wood</dc:creator>
				<category><![CDATA[Share]]></category>
		<category><![CDATA[Top 10 PHP Frameworks]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[zend fram]]></category>

		<guid isPermaLink="false">http://www.phpframeworks.com/news/?p=6781</guid>
		<description><![CDATA[<p><a href="http://www.phpframeworks.com/news/p/6781/zend-framework-architecture">Zend Framework Architecture</a> is a post from: <a href="http://www.phpframeworks.com/">PHP Frameworks</a></p>
Zend Framework Architecture is a post from: PHP Frameworks


Introduction
Before we begin our exploration of the architecture of the Zend Framework (ZF), it is important to discuss how a typical MVC application is built. Examining and understanding the architecture of an MVC Web application allows you to make more contextually sound choices when building your application.
Three-tier [...]]]></description>
		<wfw:commentRss>http://www.phpframeworks.com/news/p/6781/zend-framework-architecture/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Zend_Db_Table subquery</title>
		<link>http://www.phpframeworks.com/news/p/1269/zend_db_table-subquery</link>
		<comments>http://www.phpframeworks.com/news/p/1269/zend_db_table-subquery#comments</comments>
		<pubDate>Wed, 11 Nov 2009 23:47:24 +0000</pubDate>
		<dc:creator>wood</dc:creator>
				<category><![CDATA[Industry News]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[subquery]]></category>
		<category><![CDATA[zend-db-table]]></category>

		<guid isPermaLink="false">http://stackoverflow.com/questions/1718888/zenddbtable-subquery</guid>
		<description><![CDATA[<p><a href="http://www.phpframeworks.com/news/p/1269/zend_db_table-subquery">Zend_Db_Table subquery</a> is a post from: <a href="http://www.phpframeworks.com/">PHP Frameworks</a></p>

            <p>Hi,
I have a some SQL that I want to use with ZendFW, but I can't get it working and it's driving me crazy. I get the correct result with this query:</p>

<pre><code>SELECT DISTINCT e.festival_id FROM entries AS e, mail_log as m 
WHERE e.status = 1 
AND e.festival_id 
NOT IN (SELECT m.entry_id FROM entries AS e, mail_log as m WHERE m.entry_id = e.festival_id)
</code></pre>

<p>Help would be appreciated. Cheers :)</p>

        ]]></description>
		<wfw:commentRss>http://www.phpframeworks.com/news/p/1269/zend_db_table-subquery/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery/Ajax with Zend Framework</title>
		<link>http://www.phpframeworks.com/news/p/1264/jqueryajax-with-zend-framework</link>
		<comments>http://www.phpframeworks.com/news/p/1264/jqueryajax-with-zend-framework#comments</comments>
		<pubDate>Wed, 11 Nov 2009 22:56:09 +0000</pubDate>
		<dc:creator>wood</dc:creator>
				<category><![CDATA[Industry News]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://stackoverflow.com/questions/1718683/jquery-ajax-with-zend-framework</guid>
		<description><![CDATA[<p><a href="http://www.phpframeworks.com/news/p/1264/jqueryajax-with-zend-framework">jQuery/Ajax with Zend Framework</a> is a post from: <a href="http://www.phpframeworks.com/">PHP Frameworks</a></p>

            <p>I've been tinkering around with Zend-Framework and Jquery for a month or so, and finally started tinkering with them together using ZendX_JQuery.  It seems I've ran into something that at first seemed it should be simple, So maybe I'm just missing something here.  </p>

<p>I have a view along the lines of:</p>

<pre><code>$this-&#62;ajaxLink( $this-&#62;escape($var-&#62;title),
                 $this-&#62;baseUrl() . "/another/action",
                 array('update' =&#62; '#domain' . $var-&#62;id ,                      
                	   'complete' =&#62; '$("#domain' . $var-&#62;id .'").toggle("slow");'));

echo '&#60;div id="domain"' . $var-&#62;id . '" style="display:none;" &#62;&#60;/div&#62;';
</code></pre>

<p>Which works correctly, when the link displayed by the code above is clicked it loads the contents returned from /another/action into the domain"id" div.  The problem occurs when the view loaded by the above contains an ajaxLink() the ajax link stops working.  This can  be fixed by adding an option to the ajaxLink() array  "inline" =&#62; true but what if I need other JQuery views helpers to work when loaded into the page via ajax i.e. dialogContainer() </p>

<p>Thanks.</p>

        ]]></description>
		<wfw:commentRss>http://www.phpframeworks.com/news/p/1264/jqueryajax-with-zend-framework/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento checkout</title>
		<link>http://www.phpframeworks.com/news/p/1265/magento-checkout</link>
		<comments>http://www.phpframeworks.com/news/p/1265/magento-checkout#comments</comments>
		<pubDate>Wed, 11 Nov 2009 21:43:25 +0000</pubDate>
		<dc:creator>wood</dc:creator>
				<category><![CDATA[Industry News]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://stackoverflow.com/questions/1718293/magento-checkout</guid>
		<description><![CDATA[<p><a href="http://www.phpframeworks.com/news/p/1265/magento-checkout">Magento checkout</a> is a post from: <a href="http://www.phpframeworks.com/">PHP Frameworks</a></p>

            <p>Is it possible to redirect the browser to nth step in the onepage checkout? If so, how would one go about doing it?</p>

<p>I'm working on a payment module and have a sort of "cancel" action that i would like to return the user to the step in checkout where you choose the payment method.</p>

<p>I currently return the user to the first step of the checkout like so:</p>

<pre><code>$this-&#62;_redirect('checkout/onepage', array('_secure'=&#62;true));
</code></pre>

        ]]></description>
		<wfw:commentRss>http://www.phpframeworks.com/news/p/1265/magento-checkout/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jquery autocomplete and datepicker compatability issue?</title>
		<link>http://www.phpframeworks.com/news/p/1253/jquery-autocomplete-and-datepicker-compatability-issue</link>
		<comments>http://www.phpframeworks.com/news/p/1253/jquery-autocomplete-and-datepicker-compatability-issue#comments</comments>
		<pubDate>Wed, 11 Nov 2009 09:41:41 +0000</pubDate>
		<dc:creator>wood</dc:creator>
				<category><![CDATA[Industry News]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jquery-autocomplete]]></category>
		<category><![CDATA[uidatepicker]]></category>
		<category><![CDATA[zend-form]]></category>

		<guid isPermaLink="false">http://stackoverflow.com/questions/1714118/jquery-autocomplete-and-datepicker-compatability-issue</guid>
		<description><![CDATA[<p><a href="http://www.phpframeworks.com/news/p/1253/jquery-autocomplete-and-datepicker-compatability-issue">jquery autocomplete and datepicker compatability issue?</a> is a post from: <a href="http://www.phpframeworks.com/">PHP Frameworks</a></p>

            <p>Hi,</p>

<p>I have a form that is constructed using ZendX_JQuery_Form, the form contains 2 auto complete inputs and 4 datepickers. The datepickers all worked absolutely fine until I added in the autocomplete fields as well, the autocomplete fields (linking to a backend php action in zend framework) work fine as well but they seem to break the datepicker widgets.</p>

<p>I know very little about JQuery but the javascript that ZF creates seems okay to me:</p>

<pre><code> $(document).ready(function() {
        $("#firstname").autocomplete({"url":"crm\/candidates\/searchfirstname"});
        $("#lastname").autocomplete({"url":"crm\/candidates\/searchlastname"});
        $("#registeredfrom").datepicker({});
        $("#registeredto").datepicker({});
        $("#updatedfrom").datepicker({});
        $("#updatedto").datepicker({});
 });
</code></pre>

<p>Does anyone know of any issues in either JQuery or Zend Framework that or with the code above that might cause this scenario. Also, it would be helpful even if you know there are no issues in either of the frameworks to help me narrow down the search! </p>

<p>Thanks in advance</p>

        ]]></description>
		<wfw:commentRss>http://www.phpframeworks.com/news/p/1253/jquery-autocomplete-and-datepicker-compatability-issue/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Framework / MVC: What type of objects to push to the View?</title>
		<link>http://www.phpframeworks.com/news/p/1252/zend-framework-mvc-what-type-of-objects-to-push-to-the-view</link>
		<comments>http://www.phpframeworks.com/news/p/1252/zend-framework-mvc-what-type-of-objects-to-push-to-the-view#comments</comments>
		<pubDate>Wed, 11 Nov 2009 09:26:21 +0000</pubDate>
		<dc:creator>wood</dc:creator>
				<category><![CDATA[Industry News]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[domain-model]]></category>
		<category><![CDATA[view]]></category>

		<guid isPermaLink="false">http://stackoverflow.com/questions/1714056/zend-framework-mvc-what-type-of-objects-to-push-to-the-view</guid>
		<description><![CDATA[<p><a href="http://www.phpframeworks.com/news/p/1252/zend-framework-mvc-what-type-of-objects-to-push-to-the-view">Zend Framework / MVC: What type of objects to push to the View?</a> is a post from: <a href="http://www.phpframeworks.com/">PHP Frameworks</a></p>

            <p>Hey guys - here's a question on Zend Framework or better on MVC in general:</p>

<p>I am asking myself for a quiet a long time now, if it is a good idea to push business objects (User, Team, etc.) to my views or if it would be better just to push dump data containers such as arrays to the view for rendering. </p>

<p>When pushing business objects to my view I have a much tighter coupling between the views and my domain model, however, the view could easily do things like foreach($this-&#62;team-&#62;getUsers() as $user) { ... } which I personally find very handy.</p>

<p>Providing domain model data in dumb arrays to me looks more robust and flexbile but with the costs of that the view cannot operate on real objects and therefore cannot access related data using object's method.</p>

<p>How do you guys handle that?</p>

<p>Thanks much,
Michael</p>

        ]]></description>
		<wfw:commentRss>http://www.phpframeworks.com/news/p/1252/zend-framework-mvc-what-type-of-objects-to-push-to-the-view/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CodeIgniter vs CakePHP vs ZendFramework vs Symfony(In Chinese)</title>
		<link>http://www.phpframeworks.com/news/p/1244/codeigniter-vs-cakephp-vs-zendframework-vs-symfonyin-chinese</link>
		<comments>http://www.phpframeworks.com/news/p/1244/codeigniter-vs-cakephp-vs-zendframework-vs-symfonyin-chinese#comments</comments>
		<pubDate>Wed, 11 Nov 2009 06:48:11 +0000</pubDate>
		<dc:creator>wood</dc:creator>
				<category><![CDATA[Codeigniter]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[zendframework]]></category>

		<guid isPermaLink="false">http://www.phpframeworks.com/news/?p=1244</guid>
		<description><![CDATA[<p><a href="http://www.phpframeworks.com/news/p/1244/codeigniter-vs-cakephp-vs-zendframework-vs-symfonyin-chinese">CodeIgniter vs CakePHP vs ZendFramework vs Symfony(In Chinese)</a> is a post from: <a href="http://www.phpframeworks.com/">PHP Frameworks</a></p>
CodeIgniter vs CakePHP vs ZendFramework vs Symfony(In Chinese) is a post from: PHP Frameworks
【IT168技术分析评论】　
最近简单的使用了目前在国内用的比较多的几个主流国外PHP框架(不包括国内框架)，大致对这些框架有个直观上的感受，简单分享一下，对于哪些做框架选型的时候，权当一个参考。
主要参考的框架包括：CodeIgniter、CakePHP、ZendFramework、Symfony
说明：我对很多框架也没有认真使用，只是简单试用了一下，可能很多看法不成熟或者是错误的，请大家指正，一起成长。
【 CodeIgniter 】
官方网站：http://codeigniter.com
中文网站：http://codeigniter.org.cn
中文手册：http://codeigniter.org.cn/user_guide
视频教程：http://codeigniter.org.cn/tutorials
测试版本：CodeIgniter_1.6.1
优点：
1. 配置简单，全部的配置使用PHP脚本来配置，执行效率高;具有基本的路由功能，能够进行一定程度的路由;具有初步的Layout功能，能够制作一定程度的界面外观;数据库层封装的不错，具有基本的MVC功能
2. 快速简洁，代码不多，执行性能高，框架简单，容易上手，学习成本低，文档详细;自带了很多简单好用的library，框架适合小型应用
缺点：
1. 把Model层简单的理解为数据库操作
2. 框架略显简单，只能够满足小型应用，略微不太能够满足中型应用需要
评价：
总体来说，拿CodeIgniter来完成简单快速的应用还是值得，同时能够构造一定程度的layout，便于模板的复用，数据操作层来说封装的不错，并且CodeIgniter没有使用很多太复杂的设计模式，执行性能和代码可读性上都不错。至于附加的 library 也还不错，简洁高效。
【 CakePHP 】
官方网站：http://www.cakephp.org
中文手册：http://www.1&#215;3x.net/cakephp
视频教程：http://search.you.video.sina.com.cn/s?key=cakephp
测试版本：cake_1.1.19.6305
优点：
1. CakePHP是最类似于RoR的框架，包括设计方式，数据库操作的Active Record方式;设计层面很优雅，没有自带多余的 library，所有的功能都是纯粹的框架，执行效率还不错;数据库层的 hasOne, hasMany 功能很强大，对于复杂业务处理比较合适;路由功能，配置功能还不错;自动构建脚手架(scaffold)很强大;适合中型应用;基本实现过了MVC每一层;具有自动操作命令行脚本功能;
2. 文档比较全，在国内推广的比较成功，大部分都知道CakePHP，学习成本中等
缺点：
1. CakePHP非常严重的问题是把Model理解为数据库层操作，严重影响了除了数据库之外的操作能力
2. CakePHP的cache功能略显薄弱，配置功能稍嫌弱;CakePHP不适合大型应用，只适合中型应用，小型应用来说略微的学习成本高了点
评价：
总体来说CakePHP框架代表了PHP框架很重要的一个时代和代表，并且目前发挥着很重要的作用，不少自己写的框架都模仿了CakePHP的方式，是个里程碑式的产品;CakePHP透露着RoR的敏捷开发方式和把数据库操作认为是唯一Model的设计思想，作为开发快速应用和原型是绝好的工具;同样，用来做Web2.0网站的开发框架，也是值得选择的。
【 Zend Framework 】
官方网站：http://framework.zend.com
中文手册：http://www.phpeye.com/zf
视频教程：http://framework.zend.com/docs/screencasts
测试版本：ZendFramework-1.5.0
优点：
1. 官方出品，自带了非常多的 library，框架本身使用了很多设计模式来编写，架构上很优雅，执行效率中等;MVC设计中，比较简洁，具有路由功能，配置文件比较强大(能够处理 XML和php INI)，各种 library 很强大，是所有PHP框架中各种功能最全面的，包括它不仅是一个框架，更是一个大类库(取代PEAR)，这是它的主要特色;能够直观的支持除数据库操作之外的Model层(比 CodeIgniter 和 CakePHP 强)，并且能够很轻易的使用Loader功能加载其他新增加的Class;Cache功能很强大，从前端Cache到后端Cache都支持，后端 Cache支持Memcache、APC、SQLite、文件等等方式;数据库操作功能很强大，支持各种驱动(适配器)
2. 文档很全，在国内社区很成熟，并且目前不少Web 2.0网站在使用，学习成本中等
缺点：
1. MVC功能完成比较弱，View层简单实现(跟没实现一样)，无法很强大的控制前端页面
2. 没有自动化脚本，创建一个应用，包括入口文件，全部必须自己手工构建，入门成本高
3. Zend Framework 作为一个中型应用框架问题不大，也能够勉强作为大型应用的框架，但是作为一个很成熟的大型PHP框架来说，还需要一些努力
评价：
作为官方出品的框架，Zend Framework的野心是可以预见的，想把其他框架挤走，同时封装很多强大的类库，能够提供一站式的框架服务，并且他们的开发团队很强大，完全足够有能力开发很强大的产品出来，所以基本可以确定的是Zend [...]]]></description>
		<wfw:commentRss>http://www.phpframeworks.com/news/p/1244/codeigniter-vs-cakephp-vs-zendframework-vs-symfonyin-chinese/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add an attribute to HTML Purifier filter?</title>
		<link>http://www.phpframeworks.com/news/p/1230/add-an-attribute-to-html-purifier-filter</link>
		<comments>http://www.phpframeworks.com/news/p/1230/add-an-attribute-to-html-purifier-filter#comments</comments>
		<pubDate>Tue, 10 Nov 2009 17:04:44 +0000</pubDate>
		<dc:creator>wood</dc:creator>
				<category><![CDATA[Industry News]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[htmlpurifier]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://stackoverflow.com/questions/1709538/add-an-attribute-to-html-purifier-filter</guid>
		<description><![CDATA[<p><a href="http://www.phpframeworks.com/news/p/1230/add-an-attribute-to-html-purifier-filter">Add an attribute to HTML Purifier filter?</a> is a post from: <a href="http://www.phpframeworks.com/">PHP Frameworks</a></p>

            <p>I'm trying to allow rel attribute in a elements within HTML Purifier filter. I'm following this guide <a href="http://htmlpurifier.org/docs/enduser-customize.html" rel="nofollow">http://htmlpurifier.org/docs/enduser-customize.html</a> and here is my code:</p>

<pre><code>                $config = HTMLPurifier_Config::createDefault();
                $config-&#62;set('HTML.Doctype', 'XHTML 1.0 Strict');
                $config-&#62;set('HTML.DefinitionID', 'enduser-customize.html tutorial');
                $config-&#62;set('HTML.DefinitionRev', 1);
                $config-&#62;set('Cache.DefinitionImpl', null); // remove this later!
                $def = $config-&#62;getHTMLDefinition(true);
                $def-&#62;addAttribute('a', 'href*', 'URI');
                $def-&#62;addAttribute('a', 'rel', 'CDATA');
                $purifier = new HTMLPurifier($config);
</code></pre>

<p>However, the HTML purifier is still filtering out all rel attributes... I'm a little confused what the problem could be.</p>

<p>When I use:</p>

<pre><code>$config-&#62;set('Attr', 'AllowedRel', array('something'));
</code></pre>

<p>I get this error:</p>

<pre><code>Notice: Using deprecated API: use $config-&#62;set('Attr.AllowedRel', ...) instead on line 191 in file C:\wamp\www\neonet\application\modules\admin\controllers\IndexController.php in C:\wamp\www\neonet\library\My\htmlpurifier-4.0.0-standalone\HTMLPurifier.standalone.php on line 1819
</code></pre>

<p>EDIT:</p>

<p>New code:</p>

<pre><code>                $config = HTMLPurifier_Config::createDefault();
                $config-&#62;set('HTML.Doctype', 'XHTML 1.0 Strict');
                $config-&#62;set('Attr.AllowedRel', array('something'));
                $purifier = new HTMLPurifier($config);
</code></pre>

<p>When I use:</p>

<pre><code>&#60;href="/" rel="something"&#62;anchor&#60;/a&#62;
</code></pre>

<p>Rel attribute still gets filtered.</p>

        ]]></description>
		<wfw:commentRss>http://www.phpframeworks.com/news/p/1230/add-an-attribute-to-html-purifier-filter/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unit testing Zend controllers with mock models and services</title>
		<link>http://www.phpframeworks.com/news/p/1226/unit-testing-zend-controllers-with-mock-models-and-services</link>
		<comments>http://www.phpframeworks.com/news/p/1226/unit-testing-zend-controllers-with-mock-models-and-services#comments</comments>
		<pubDate>Tue, 10 Nov 2009 12:23:59 +0000</pubDate>
		<dc:creator>wood</dc:creator>
				<category><![CDATA[Industry News]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[unit-testing]]></category>

		<guid isPermaLink="false">http://stackoverflow.com/questions/1707584/unit-testing-zend-controllers-with-mock-models-and-services</guid>
		<description><![CDATA[<p><a href="http://www.phpframeworks.com/news/p/1226/unit-testing-zend-controllers-with-mock-models-and-services">Unit testing Zend controllers with mock models and services</a> is a post from: <a href="http://www.phpframeworks.com/">PHP Frameworks</a></p>

            <p>I've read a lot of Zend controller testing tutorials but I can't find one that explains how to test a controller that uses models and mocking those models.</p>

<p>I have the following controller action:-</p>

<pre><code>function indexAction(){
  // Get the cache used by the application
  $cache = $this-&#62;getCache(); 

  // Get the index service client and model
  $indexServiceClient = new IndexServiceClient($this-&#62;getConfig());
  $indexModel = $this-&#62;_helper-&#62;ModelLoader-&#62;load('admin_indexmodel', $cache);
  $indexModel-&#62;setIndexServiceClient($indexServiceClient);

  // Load all the indexes
  $indexes = $indexModel-&#62;loadIndexes();

  $this-&#62;view-&#62;assign('indexes', $indexes);
}
</code></pre>

<p>At the moment I have a very basic test case:-</p>

<pre><code>public function testIndexActionRoute() {
  $this-&#62;dispatch( '/admin/index' );
  $this-&#62;assertModule('admin', 'Incorrect module used');
  $this-&#62;assertController('index', 'Incorrect controller used');
  $this-&#62;assertAction('index', 'Incorrect action used');
}
</code></pre>

<p>This test works but it's calling the real models and services, which sometimes means it times out and fails on the test environment. In order to properly unit test just the controller I need to have mocks and expectations for IndexServiceClient and IndexModel - how is this done?</p>

        ]]></description>
		<wfw:commentRss>http://www.phpframeworks.com/news/p/1226/unit-testing-zend-controllers-with-mock-models-and-services/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend_Search_Lucene search in array</title>
		<link>http://www.phpframeworks.com/news/p/1222/zend_search_lucene-search-in-array</link>
		<comments>http://www.phpframeworks.com/news/p/1222/zend_search_lucene-search-in-array#comments</comments>
		<pubDate>Tue, 10 Nov 2009 09:34:03 +0000</pubDate>
		<dc:creator>wood</dc:creator>
				<category><![CDATA[Industry News]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[zend-search-lucene]]></category>

		<guid isPermaLink="false">http://stackoverflow.com/questions/1706662/zendsearchlucene-search-in-array</guid>
		<description><![CDATA[<p><a href="http://www.phpframeworks.com/news/p/1222/zend_search_lucene-search-in-array">Zend_Search_Lucene search in array</a> is a post from: <a href="http://www.phpframeworks.com/">PHP Frameworks</a></p>

            <p>Is there a way to store an array and then query that array?</p>

<p>I've got a collection of items, which are tagged. I'd like to be able to search all items that match for example tags 55 and 67.</p>

<p>How would I achieve this?</p>

        ]]></description>
		<wfw:commentRss>http://www.phpframeworks.com/news/p/1222/zend_search_lucene-search-in-array/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Framework how to get the number of item in the loop ? partialLoop partialCounter and ?</title>
		<link>http://www.phpframeworks.com/news/p/1189/zend-framework-how-to-get-the-number-of-item-in-the-loop-partialloop-partialcounter-and</link>
		<comments>http://www.phpframeworks.com/news/p/1189/zend-framework-how-to-get-the-number-of-item-in-the-loop-partialloop-partialcounter-and#comments</comments>
		<pubDate>Mon, 09 Nov 2009 07:35:17 +0000</pubDate>
		<dc:creator>wood</dc:creator>
				<category><![CDATA[Industry News]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[partial-views]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://stackoverflow.com/questions/1699588/zend-framework-how-to-get-the-number-of-item-in-the-loop-partialloop-partialcou</guid>
		<description><![CDATA[<p><a href="http://www.phpframeworks.com/news/p/1189/zend-framework-how-to-get-the-number-of-item-in-the-loop-partialloop-partialcounter-and">Zend Framework how to get the number of item in the loop ? partialLoop partialCounter and ?</a> is a post from: <a href="http://www.phpframeworks.com/">PHP Frameworks</a></p>

            <p>Hello everyone, </p>

<p>I want to to make a particular processing for the last item of a <code>partialLoop</code>, the <a href="http://framework.zend.com/manual/en/zend.view.helpers.html#zend.view.helpers.initial.partial" rel="nofollow">documentation</a> mention about <code>$this-&#62;partialCounter</code> but not the variable with the total number of items ... </p>

<pre><code>&#60;?php
if( $this-&#62;partialCounter == $mysteryvariable -1 ): 
?&#62;
</code></pre>

<p>I am missing something I think ... cannot get my hand on that variable ... </p>

        ]]></description>
		<wfw:commentRss>http://www.phpframeworks.com/news/p/1189/zend-framework-how-to-get-the-number-of-item-in-the-loop-partialloop-partialcounter-and/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Form add error message</title>
		<link>http://www.phpframeworks.com/news/p/1165/zend-form-add-error-message</link>
		<comments>http://www.phpframeworks.com/news/p/1165/zend-form-add-error-message#comments</comments>
		<pubDate>Sat, 07 Nov 2009 19:30:03 +0000</pubDate>
		<dc:creator>wood</dc:creator>
				<category><![CDATA[Industry News]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://stackoverflow.com/questions/1694136/zend-form-add-error-message</guid>
		<description><![CDATA[<p><a href="http://www.phpframeworks.com/news/p/1165/zend-form-add-error-message">Zend Form add error message</a> is a post from: <a href="http://www.phpframeworks.com/">PHP Frameworks</a></p>

            <p>Hi
I did register form in with zend form</p>

<pre><code>$password = new Zend_Form_Element_Password('password');
$password-&#62;setLabel($this-&#62;_translate-&#62;_("Password:"))
    -&#62;setRequired(true)
    -&#62;addValidator('stringLength', true, array(4, 32));

$confirmPassword = new Zend_Form_Element_Password('confirmpassword');
$confirmPassword-&#62;setLabel($this-&#62;_translate-&#62;_("Confirm Password:"))
    					-&#62;setRequired(true);
</code></pre>

<p>I control password and confirmpassword in controller. if password and confirmpassword don't match then add error message under confirmpassword textbox. how i do? </p>

        ]]></description>
		<wfw:commentRss>http://www.phpframeworks.com/news/p/1165/zend-form-add-error-message/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>File Upload in Zend</title>
		<link>http://www.phpframeworks.com/news/p/1119/file-upload-in-zend</link>
		<comments>http://www.phpframeworks.com/news/p/1119/file-upload-in-zend#comments</comments>
		<pubDate>Sat, 07 Nov 2009 05:59:35 +0000</pubDate>
		<dc:creator>wood</dc:creator>
				<category><![CDATA[Industry News]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[zend-form]]></category>

		<guid isPermaLink="false">http://stackoverflow.com/questions/1692146/file-upload-in-zend</guid>
		<description><![CDATA[<p><a href="http://www.phpframeworks.com/news/p/1119/file-upload-in-zend">File Upload in Zend</a> is a post from: <a href="http://www.phpframeworks.com/">PHP Frameworks</a></p>

            <p>Hello every body,</p>

<p>i m using zend form &#38; create its elements using the code below.</p>

<p>// To create text box.
$txt = $this-&#62;CreateElement('text', 'txtName');
$txt = $this-&#62;setLabel('First Name');
$elements[] = $element;</p>

<p>it works fine &#38; it is posted firm form as well. But when i used the same technique to show a browse button, like.</p>

<p>// To Create Browse Button.
$img = $this-&#62;CreateElement('file', 'imageId');
$img = $this-&#62;setLabel('Upload Image');</p>

<p>$elements[] = $element;</p>

<p>it does not work.</p>

        ]]></description>
		<wfw:commentRss>http://www.phpframeworks.com/news/p/1119/file-upload-in-zend/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I use namespaces with Zend Framework?</title>
		<link>http://www.phpframeworks.com/news/p/1114/how-do-i-use-namespaces-with-zend-framework</link>
		<comments>http://www.phpframeworks.com/news/p/1114/how-do-i-use-namespaces-with-zend-framework#comments</comments>
		<pubDate>Sat, 07 Nov 2009 02:42:20 +0000</pubDate>
		<dc:creator>wood</dc:creator>
				<category><![CDATA[Industry News]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[namespaces]]></category>

		<guid isPermaLink="false">http://stackoverflow.com/questions/1691793/how-do-i-use-namespaces-with-zend-framework</guid>
		<description><![CDATA[<p><a href="http://www.phpframeworks.com/news/p/1114/how-do-i-use-namespaces-with-zend-framework">How do I use namespaces with Zend Framework?</a> is a post from: <a href="http://www.phpframeworks.com/">PHP Frameworks</a></p>

            <p><strong>Namespaces</strong> are really useful and PHP had no support for them until the recent few releases, AFAIK.<br />
When I'm using Zend Framework, I have to remember <strong>long names with underscores</strong> - like <code>Zend_Form_Element_Button</code> or <code>Zend_Form_Decorator_HtmlTag</code> and so on.<br />
If I use namespaces, this might be possible, and so much easier:</p>

<pre>
namespace Zend {
  class something {
    // ...
  }
}

namespace Zend\Form {
  class something {
    // ...
  }
}

namespace Zend\Form\Element {
  class Button {
    // ...
  }
}
</pre>

<p>And to use it I do this:</p>

<pre>
use Zend\Form\Element\Button;
$btn1 = new Button();
</pre>

<p>So my question is, <strong>is it trivially possible</strong>, given the autoloader system and a lot of meta-class "black magic" that lives inside Zend Framework, to <strong>rewrite the structure of the code using namespaces</strong>, and then have more sensible class names?<br />
The problem is not the length of the class names - Eclipse/Netbeans/Aptana handle that very well, it is <strong>the irritant that long names are</strong>.<br />
Tends to get <strong>confusing</strong> after some time if some classes you use <strong>have similar parts in the names</strong>.<br />
Since <strong>ZF is open source</strong> licensed, I don't think Zend would mind a namespaced version of the code, <strong>if mere renaming and some re-organization of code can achieve that</strong>.</p>

        ]]></description>
		<wfw:commentRss>http://www.phpframeworks.com/news/p/1114/how-do-i-use-namespaces-with-zend-framework/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Should I learn ASP.NET MVC or the Zend Framework? [closed]</title>
		<link>http://www.phpframeworks.com/news/p/1106/should-i-learn-asp-net-mvc-or-the-zend-framework-closed</link>
		<comments>http://www.phpframeworks.com/news/p/1106/should-i-learn-asp-net-mvc-or-the-zend-framework-closed#comments</comments>
		<pubDate>Fri, 06 Nov 2009 18:41:00 +0000</pubDate>
		<dc:creator>wood</dc:creator>
				<category><![CDATA[Industry News]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[asp.net-mvc]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://stackoverflow.com/questions/1689484/should-i-learn-asp-net-mvc-or-the-zend-framework</guid>
		<description><![CDATA[<p><a href="http://www.phpframeworks.com/news/p/1106/should-i-learn-asp-net-mvc-or-the-zend-framework-closed">Should I learn ASP.NET MVC or the Zend Framework? [closed]</a> is a post from: <a href="http://www.phpframeworks.com/">PHP Frameworks</a></p>

            <p>I'm an amateur PHP programmer and want to know if I'm better served by going with the Zend Framework, or if I should learn ASP.NET MVC?</p>

<p>Which has better 'free' resources on the internet? Which would you recommend? What are your experiences with either?</p>

        ]]></description>
		<wfw:commentRss>http://www.phpframeworks.com/news/p/1106/should-i-learn-asp-net-mvc-or-the-zend-framework-closed/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tagging with Zend Framework</title>
		<link>http://www.phpframeworks.com/news/p/1103/tagging-with-zend-framework</link>
		<comments>http://www.phpframeworks.com/news/p/1103/tagging-with-zend-framework#comments</comments>
		<pubDate>Fri, 06 Nov 2009 14:26:29 +0000</pubDate>
		<dc:creator>wood</dc:creator>
				<category><![CDATA[Industry News]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tagging]]></category>

		<guid isPermaLink="false">http://stackoverflow.com/questions/1687950/tagging-with-zend-framework</guid>
		<description><![CDATA[<p><a href="http://www.phpframeworks.com/news/p/1103/tagging-with-zend-framework">Tagging with Zend Framework</a> is a post from: <a href="http://www.phpframeworks.com/">PHP Frameworks</a></p>

            <p>I'm trying to create the same solutions as below, but using a simple MySQL query (instead of the static version used below where the words/tags are implemented in the code). The name of the MySQL table is "tags" and it has 2 columns "id" &#38; "tag".</p>

<p>Unfortunately I'm a beginner and I wasn't able to solve this. Can someone help me?</p>

<pre><code>/* Zend_Tag_Item version*/

$list = new Zend_Tag_ItemList();

$list[] = new Zend_Tag_Item(array('title' =&#62; 'Code', 'weight' =&#62; 50));
$list[] = new Zend_Tag_Item(array('title' =&#62; 'Zend Framework', 'weight' =&#62; 1));
$list[] = new Zend_Tag_Item(array('title' =&#62; 'PHP', 'weight' =&#62; 5));

$list-&#62;spreadWeightValues(array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10));

foreach ($list as $item) {
    $this-&#62;view-&#62;tagtitle = $item-&#62;getTitle();
    $this-&#62;view-&#62;tagweight = $item-&#62;getParam('weightValue');
}


/* Zend_Tag_Cloud version*/

$cloud = new Zend_Tag_Cloud(array(
    'tags' =&#62; array(
        array('title' =&#62; 'Code', 'weight' =&#62; 50,
              'params' =&#62; array('url' =&#62; '/tag/code')),
        array('title' =&#62; 'Zend Framework', 'weight' =&#62; 1,
              'params' =&#62; array('url' =&#62; '/tag/zend-framework')),
        array('title' =&#62; 'PHP', 'weight' =&#62; 5,
              'params' =&#62; array('url' =&#62; '/tag/php')),
    )
));

$formdata-&#62;pagecontent-&#62;tagging = $cloud;
</code></pre>

        ]]></description>
		<wfw:commentRss>http://www.phpframeworks.com/news/p/1103/tagging-with-zend-framework/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can Zend_Service_Rest do file uploads?</title>
		<link>http://www.phpframeworks.com/news/p/1096/can-zend_service_rest-do-file-uploads</link>
		<comments>http://www.phpframeworks.com/news/p/1096/can-zend_service_rest-do-file-uploads#comments</comments>
		<pubDate>Fri, 06 Nov 2009 11:21:04 +0000</pubDate>
		<dc:creator>wood</dc:creator>
				<category><![CDATA[Industry News]]></category>
		<category><![CDATA[Share]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[restful]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://stackoverflow.com/questions/1686976/can-zendservicerest-do-file-uploads</guid>
		<description><![CDATA[<p><a href="http://www.phpframeworks.com/news/p/1096/can-zend_service_rest-do-file-uploads">Can Zend_Service_Rest do file uploads?</a> is a post from: <a href="http://www.phpframeworks.com/">PHP Frameworks</a></p>

            <p>I assume that RESTful services is a comprehensive paradigm, that it also could cover file uploads too, as a subset of http operations.</p>

<p>If so, how does one do file uploads in Rest and specifically, with Zend_Service_Rest?</p>

<p>Should my client code somehow read the file and assign its content to some property of restful object? Or there is another way?</p>

        ]]></description>
		<wfw:commentRss>http://www.phpframeworks.com/news/p/1096/can-zend_service_rest-do-file-uploads/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

