advertisement

Article:
  Quick and Clean PHP Forms
Subject:   HTML_QuickForm_Renderer_Tableless
Date:   2007-11-29 07:23:19
From:   nasser2
Adam, very nice tutorial and it really takes QuickForm to the next step forward. Thus why I want to use your extended class for my form generation.


However, what do I do to use it with the HTML_QuickForm_Renderer_Tableless class to generate a tableless form. I normally use:



require_once 'HTML/QuickForm.php';
require_once 'HTML/QuickForm/Renderer/Tableless.php';


$form =& new HTML_QuickForm();
$renderer =& new HTML_QuickForm_Renderer_Tableless();


// usual code, e.g. new form fields, rules, ...


$form->accept($renderer);
echo $renderer->toHtml();


and worked with QuickForm but not with QuickerForm.


Would you please help me.


Thanks,
Nasser


Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • HTML_QuickForm_Renderer_Tableless
    2007-11-29 08:09:55  ajs17@cornell.edu [Reply | View]

    Nasser,

    Thank you for the feedback.

    Not long ago, I also wanted to use a custom renderer, and as I recall, I had to rework my approach a little to account for it.

    I'm going to have to go back and refresh my memory of what I did. The description I then come up with may be long enough that I'll post it on my personal blog and link to it from here.

    Are you under time pressure with this?

    adam