News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
CodeSnipers.com:
HTML Helpers - Ruby Wannabes in PHP
December 07, 2005 @ 07:15:00

On CodeSnipers.com today, there's a look at Nola's creation of HTML helpers based off of the same types of objects in Ruby.

I've gone back and forth on the idea of using ALL html generation functions to hammering it all out in a template like Smarty. Templates are nice, It sure is nice to use functions. I was looking at RoR and saw these HTML helper functions. I thought, hey I can write them in php. (Yeah to all you php hating ruby folks, this may be an effort in futility, but thinking how to implement some of these things in PHP helps me understand the concept, like my MVC articles).

Her examples include the creation of text fields, text areas, and opening/closing tags for a form. The two field functions also take in values and attributes to specify in the outputed HTML.

0 comments voice your opinion now!
php HTML helper Ruby form fields php HTML helper Ruby form fields



Similar Posts

Pierre\'s Blog: imagepng, take #2

Zend Developer Zone: Consuming Google Calendars with the Zend Framework

Sara Golemon\'s Blog: libssh2 API documentation - Complete

TechTarget.com: Our Favorite Cheat Sheets

Matthew Weir O'Phinney's Blog: Phly_Struct? no, Phly_Hash...


Community Events









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


PHP5 job zendframework mysql release zend conference releases framework example PEAR code developer ajax application security cakephp database book package

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