i've just started playing with the PEAR package QuickForm. The first thing I want to change (of course) is the form markup. I want to use an unordered list instead of a table for the form elements.

I've successfully done this using the code from the thread below:

but what I want to be able to do is create my own class that will override the default renderer, so I can reuse this formatting on any form I create, instead of having to code this in each page.

I've successfully created my own classes for other uses, but i'm not so confident with QuickForm as it's pretty complicated.

Can someone give me a starting point?