Re: QuickForm - Template Select still outputs tables <- [SOLVED]

From: Date: Thu, 22 Jan 2004 18:45:44 +0000
Subject: Re: QuickForm - Template Select still outputs tables <- [SOLVED]
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-10297@lists.php.net to get a copy of this message
Helloo, Alexey, thanks very much for responding! Of course again you are right. as soon as I looked at the code to post, I saw the $form->display(); Set for QF so I looked closer and saw I had the wrong place holders in the html template. Probably from flexy ;( Alexey Borzov wrote:
Are you going to show us some code, or are we stuck with helping you the hard way?
If you see somthing work you know it works, or If Alexey says it does, it does! Did I mention that I really appreciate your hard work and responding to questions?. This was all I needed.. ...QF... $sqlselect = $db->getAssoc("some_sql_query_returning_name_and_value"); $form->addElement('select', 'testselect', 'Test Select:', $sqlselect,''); $tpl =& new HTML_Template_ITX('./templates'); $tpl->loadTemplateFile('select.html'); $renderer =& new HTML_QuickForm_Renderer_ITDynamic($tpl); $form->accept($renderer); $tpl->show(); ... 2 lines in select.html: <form {qf_attributes}> {qf_element} Thanks, Austin

« previous php.pear.general (#10297) next »