News Feed
Sections




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

Nick Halstead's Blog:
Making a TAG Cloud out of Zend_Cache
May 09, 2007 @ 10:14:00

In his current work with a project staring the Zend Framework, Nick Halstead has figured out a way to create a tag cloud that can be loaded quickly with the help of the Zend_Cache component.

Zend_Cache is a caching mechanism that either lets you cache chunks of output or chunks of data. Both concepts are easy to implement within your code and given time they become second nature to use. And because they are simple to implement you find yourself using them anywhere and everywhere.

In his example, he grabs treed category data and dumps it (formatted) into a Zend_Cache object. He also mentions what he calls a "touch of genius on the part of the Zend Framework team" - the ability to tag the cache and make it easy to reference.

Finally, it's back out to the front end, an interface to the cached object that pushes the data back out as a series of formatted links pointing to content associated with the chosen tag.

0 comments voice your opinion now!
tagcloud zendframework zendcache cache data tagcloud zendframework zendcache cache data


blog comments powered by Disqus

Similar Posts

ProDevTips: Writing a CMS/Community with Smarty and the Zend Framework: Part 8

Eran Galperin's Blog: On the pitfalls of date validation with the Zend Framework

Till Klampaeckel's Blog: Iterating over a table (with Zend_Db_Table and Zend_Paginator)

Raphael Stolt's Blog: Scraping websites with Zend_Dom_Query

PHPBuilder.com: Incorporate Weather Data into Your PHP Web Apps


Community Events





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


podcast series zendserver threedevsandamaybe language api conference release bugfix voicesoftheelephpant community deployment introduction tips symfony list interview code laravel framework

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