For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > October 2005 > RE: [PEAR] quickform rendering xhtml with labels etc









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: [PEAR] quickform rendering xhtml with labels etc
Mark Steudel

2005-10-26, 6:57 pm

I ran into similar issues as you and I got around by something like the
following:

// To remove just something like empty bold tags
$html = str_replace( '<b></b>', ' ', $form->toHtml() );

Of course I'm using smarty, so I can just plug the $html variable into my
smarty template

When you change the element template I believe you change it for all of the
elements.

>-----Original Message-----
>From: Luke Barker [mailto:lukebarker@gmail.com]
>Sent: Wednesday, October 26, 2005 7:27 AM
>To: pear-general@lists.php.net
>Subject: [PEAR] quickform rendering xhtml with labels etc
>
>Hi I want to lay out my quickform with CSS. So I want to strip
>the TD and TR tags added by Quickform out from the rendering.
>
>What is the best way to do this? I know there is QuickHTML.php
>method or should I just setElementTemplate() on each element?
>This seems a bit laborious, I just want to strip TD from each
>element, so I can lay out the form myself. But the addition of
><label for=""> tags is confusing me, as I don't know how to
>set this globally - it would help if I could do something like
><label for="{element}"> in the setElementTemplate(), but I
>don't think this is possible.
>
>Any advice would be appreciated. I do not use Smarty or
>anything like that.
>
>Thanks,
>
>Luke
>--
>
>~L~
>
>lukebarker@gmail.com
>---------------------------------------
>I'm doggone gonna be with
>Some real people...
>
>( Rodgers & Edwards )
>
>--
>PEAR General Mailing List (http://pear.php.net/) To
>unsubscribe, visit: http://www.php.net/unsub.php
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com