PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_QuickForm2 » Bug #9116

Default rendering - XHTML/CSS instead of Tables

Details

Request #9116Default rendering - XHTML/CSS instead of Tables
Submitted2006-10-20 22:20 UTC
Frombenjaminhill at gmail dot com
Assignedavb
StatusClosed
PackageHTML_QuickForm2
PHP Version5.1.0
Roadmaps0.3.0

Comments

[2006-10-20 22:20 UTC] benjaminhill at gmail dot com

Description:
------------
A request for the default rendering method to use the ligher-weight XHTML/CSS style, like HTML_QuickForm_Renderer_Tableless does. Either that, or highlight the ability to render using the Tableless version in the documentation.

Reason: I had nearly given up on QuickForm, not having the time to dig into the documentation on writing a custom renderer, when I stumbled on HTML_QuickForm_Renderer_Tableless, and now I can adopt QF to many more of my needs with only CSS changes, which is perfect for the sort of rapid-prototyping I'm involved in.

Besides, table-based layout is so web 1.0. :)

[2006-10-22 17:18 UTC] benjaminhill at gmail dot com

wiki page http://quickform.mamasam.com/wiki/milestones has the example

foreach ($form as $element) {
echo 'getId() . '">' . $element->getLabel() . ': ' . $element->__toString() . '';
}

Suggest div tags instead of BR tags to make new lines, more flexibility for the CSS developer. (I realize this is just an example/workaround until a real renderer is created, but examples like this tend to survive into future documentation.)

foreach ($form as $element) {
echo 'getId() . '" class="qflabel">' . $element->getLabel() . ': ' . $element->__toString() . "\n";
}