Page 2 of 2

Posted: Wed Oct 11, 2006 4:44 am
by volka
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).
YES!
Jenk wrote:The setProperty method is a lot cleaner and easier to read than

Code: Select all

$form->addElement('textarea', 'myTextarea', null, array('rows'=>2, 'cols'=>20));
volka wrote:
Jenk wrote:The setProperty method is a lot cleaner and easier to read than
For the static part of the form I disagree, but anyway...
volka wrote:
$form = new HTML_QuickForm('myForm');
$form->addElement('textarea', 'myTextarea', null, array('rows'=>2, 'cols'=>20));
$form->addElement('submit', null, 'click me!');
$form->display();
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.
Now, will you please kindly forget about it?

Posted: Wed Oct 11, 2006 4:51 am
by Chris Corbyn
Ok thanks, enough of that.

Posted: Wed Oct 11, 2006 4:58 am
by patrikG
No need to repeat the entire exercise in misunderstanding one another, but I gather volka's point is along the lines of
William of Ockham wrote:entities should not be multiplied beyond necessity.
Point being: apart from better legibility (subjective), what does your form-generator offer that others, e.g. Quickform, don't?

Posted: Wed Oct 11, 2006 5:14 am
by Jenk
Simplicity, more flexibility, and less bloat.

Posted: Wed Oct 11, 2006 8:04 pm
by Christopher
QuickForm is probably over 300k of code, not all used at once. It does a lot. I would suggest taking a difference approach. I don't use QuickForm because I don't use that style.