Here's why. 🙂
With 3 or 4 people working on the same site, I can see a need for other formatted tables and forms. Example... this one is a dining guide (administration and client submit page). The next one might be a Bands page (administration and band submit page). etc. etc.
We want a common look throughout the site. Eric is going to do the dining guide. Now, when Jane wants to do the band guide, all she should need to do is copy the band site PHP and edit the code for fields for the table, WITHOUT recreating HTML, then wrapping PHP around the HTML, etc. etc.
Also, say Jane doesn't know much PHP. In our current code, all she has to know is:
//this adds a form element "text"
$frm->text('name','label','size','maxsize','value')
//this adds an option button
$frm->option('value','name','elementnum','selected')
//this adds a checkbox
$frm->checkbox('name','value','label')
etc. etc.
All Eric or Jane will have to do is note which fields must be created, and the table (via PHP) is created around the fields.
Elements are easy to create in all the classes I've seen; I think the problem is creating rows and fields the same way, ie. I'd love to do this:
//this adds a row here
$frm->row('width','height','columns')
//this adds 3 columns in the row I just created
$frm->column('width','height',valign')
[some element code for td 1)
$frm->column('width','height',valign')
[some element code for td 1)
$frm->column('width','height',valign')
[some element code for td 1)
Then continue with creating elements, etc. etc.
Thanks,
Eve