Posted: Wed Oct 11, 2006 4:44 am
YES!Jenk wrote:That's got nothing to do with the code in my first post.. that's down to the implmentation and use of the code.. not the class(es).
Jenk wrote:The setProperty method is a lot cleaner and easier to read thanCode: Select all
$form->addElement('textarea', 'myTextarea', null, array('rows'=>2, 'cols'=>20));
volka wrote:For the static part of the form I disagree, but anyway...Jenk wrote:The setProperty method is a lot cleaner and easier to read than
Now, will you please kindly forget about it?volka wrote:this is static. No matter what the rest of the script does the form always looks the same - there's no dynamic/changing part in it. And in this case I like a compact form of coding. It was not criticism, just a statement, a preference.$form = new HTML_QuickForm('myForm');
$form->addElement('textarea', 'myTextarea', null, array('rows'=>2, 'cols'=>20));
$form->addElement('submit', null, 'click me!');
$form->display();