 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Neil Garb's Blog: Compound elements with Zend_Form
by Chris Cornutt July 17, 2008 @ 11:13:03
In a recent entry to his blog, Neil Garb shows his method for creating compound elements in a Zend_Form object in your Zend Framework website.
Zend_Form can save you a lot of time. It almost completely abstracts away the most boring and error-prone aspects of developing secure and standards-compliant HTML forms. But one thing it doesn't do out of the box is compound elements, such as three-field dates. In this post I'll show you the easiest way to do this ZF-style.
He goes through the creation of the sample controller, an example of a custom element (the multiple date drop-downs he mentioned) and how to handle the validation in a "Zend Framework way" via an isValid call.
voice your opinion now!
compount element zendform zendframework
Tiffany Brown's Blog: Turn text files into pull down menus
by Chris Cornutt February 27, 2008 @ 09:35:00
Tiffany Brown shares a quick function she whipped up to create dropdown menus from the contents of a newline separated text file (or files).
I developed this PHP function for a project I'm working on. I'm posting it here in case I need it again, or in case you find it handy.
The function turns each line into an option tag making defining custom menus based on the contents of dynamically-given text files easy.
This could also be easily adapted to create navigations menus at the top of your pages with a few modifications to the HTML tags being used and some CSS to change the look of the list.
voice your opinion now!
text file dropdown menu form element navigation css
Tilllate Blog: Caching of Dynamic Data Sets
by Chris Cornutt December 05, 2007 @ 10:29:00
On the Tilllate Blog, there's a new post discussing the use of caching in applications, specifically for dynamic data.
Consider you have a set of data that is changing dynamically for each page request and you need to cache that data the fastest way possible. You can't cache dynamic and unpredictable data as a whole, can you? Hence, we would put each data entry into cache separately to be able to fetch it separately and dynamically. But this means bombing your cache infrastructure with with requests.
They break it up into a few different topics - caching text elements on the page, two-tiered caching (grouping cached items), incremental caching and cache versioning. They don't share an example of their code unfortunately, but they do mention something about a possible contribution to the Zend_Cache component of the Zend Framework.
voice your opinion now!
caching dynamic data text element incremental versioning cache caching dynamic data text element incremental versioning cache
DevShed: Introducing the Flyweight Pattern with PHP 5
by Chris Cornutt February 26, 2007 @ 12:41:00
DevShed charges right ahead with its emphasis on design patterns in PHP with a new start of a new series today that looks at the Flyweight pattern.
Among the considerable variety of structural design patterns that can be implemented with PHP 4 (and PHP 5, by the way), there's one in particular that deserves special attention. It's easy to apply in the context of a given web application, and it offers remarkable functionality when it comes to preventing the unnecessary instantiation of different classes. This two-part series covers that pattern.
As they explain, the Flyweight pattern helps to keep your code light and simple by preventing the instantiation of unneeded objects and resources. They go with a HTML form example, illustrating how to prevent a submit button or an input button's class to be reinitialized every time a new form field is needed.
voice your opinion now!
flyweight pattern php5 designpattern tutorial form element flyweight pattern php5 designpattern tutorial form element
DevShed: Building an RSS File
by Chris Cornutt February 14, 2007 @ 09:02:00
In the continuing series on RSS files, DevShed has posted this new part with a focus on the "theoretical aspects" of developing an RSS file.
These aspects include things like examples of the elements it can contain, elements that are required for it to be a compliant RSS document, a look at the enhanced RSS functionality and structure (more information about the creator of the RSS embedded in the data), and even a look at what an aggregator is and what they would do with your RSS file.
Keep an eye out for the last installment in the series - a look at actually creating the RSS file from your data (probably from a database) and displaying it for the world to see.
voice your opinion now!
build rss file element required aggregator ehnanced build rss file element required aggregator ehnanced
|
Community Events
Don't see your event here? Let us know!
|