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, ...

echo $renderer->toHtml();

and worked with QuickForm but not with QuickerForm.

Would you please help me.


Full Threads Oldest First

Showing messages 1 through 5 of 5.

  • HTML_QuickForm_Renderer_Tableless
    2007-11-29 08:09:55 [View]


    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?

    • HTML_QuickForm_Renderer_Tableless
      2007-11-29 08:15:38  nasser2 [View]

      Thanks Adama for the prompt reply.

      I have to deliver the project by the weekend.
      • HTML_QuickForm_Renderer_Tableless
        2007-11-29 08:23:06 [View]

        Ouch. I'll try to come up with something today or tomorrow, but I can't guarantee it. When you say "by the weekend" do you literally mean Friday, or do you have the weekend to work on it? As I recall, the changes are small, so once I tell you what I did, you should be able to adapt it pretty quickly to your situation.

        I hope this helps.
        • HTML_QuickForm_Renderer_Tableless
          2007-11-29 16:25:19  ajs17 [View]


          I hope this helps:

        • HTML_QuickForm_Renderer_Tableless
          2007-11-29 08:33:11  nasser2 [View]

          No I have to just finish testing by Sunday and deliver it Monday morning.