<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 25 May 2013 07:28:06 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Adrian Schneider's Blog: Caching Zend Framework Forms]]></title>
      <guid>http://www.phpdeveloper.org/news/14011</guid>
      <link>http://www.phpdeveloper.org/news/14011</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Adrian Schneider</i> looks at a method for <a href="http://www.siradrian.com/blog/2010/02/caching-zend-framework-forms/">caching your forms</a> in your Zend Framework application so you don't have to recreate it every time.
</p>
<blockquote>
Generating a form is an expensive process in ZF. It's always bugged me that I can't find any resources on trying to cache the initial HTML anywhere, so I took a stab at it myself. I use a loader from inside my controller action to load forms and models, so I found that was a good place to start.
</blockquote>
<p>
To help solve the problem, he's created a simple loader class (maybe dropped into an action helper) that, when used will cache the form (using Zend_Cache, of course) to keep the object instance where you can get to it later. The code to implement it and to put it to good use is also included.
</p>]]></description>
      <pubDate>Thu, 11 Feb 2010 11:36:10 -0600</pubDate>
    </item>
  </channel>
</rss>
