News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Adrian Schneider's Blog:
Caching Zend Framework Forms
February 11, 2010 @ 11:36:10

In a new post to his blog Adrian Schneider looks at a method for caching your forms in your Zend Framework application so you don't have to recreate it every time.

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.

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.

0 comments voice your opinion now!
cahe zendform zendframework zendcache tutorial


blog comments powered by Disqus

Similar Posts

EasyPHPWebSites.com: Updates for Zend Framework 1.9

Oracle Coherence Blog: Getting Started With The Coherence Memcached Adaptor (and PHP)

Zend Developer Zone: Webinar - New in Zend Framework 1.10!

Ben Scholzen's Blog: Writing powerful and easy config files with PHP-arrays

Derick Rethans' Blog: Xdebug and tracing memory usage


Community Events

Don't see your event here?
Let us know!


community language library development example unittest laravel framework php7 opinion voicesoftheelephpant podcast introduction release laravel5 interview video series version api

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework