RE: [PEAR] HTML_Flexy_Template - attribute problem?
| From: | Andy Crain | Date: | Fri, 29 Aug 2003 19:29:36 +0000 |
| Subject: | RE: [PEAR] HTML_Flexy_Template - attribute problem? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-7487@lists.php.net to get a copy of this message | ||
You could do it using Flexy's form methods from your object, rather than
in the template itself, like:
$this->elements['C1'] = new
HTML_Template_Flexy_Element('checkbox',array('type'=>'hidden') );
$this->elements['C1']->setValue($C1);
Andy
> -----Original Message-----
> From: mitchell perilstein [mailto:mitch@enetis.net]
> Sent: Friday, August 29, 2003 1:59 PM
> To: pear-general@lists.php.net
> Subject: [PEAR] HTML_Flexy_Template - attribute problem?
>
> Hi guys,
>
> Flexy (recent cvs) doesn't seem to like {} substitutions or php <? ?>
> escapes inside html tags in a template. If they are inside attribute
> foo="" value strings, no problem. It doesn't seem to matter which
tag,
> same behavior with made-up tag names. Also doesn't seem to matter if
> flexy:ignore is used.
>
> This is a problem if you want to add your own attributes to arbitrary
> tags.
>
> <!-- okay -->
> <input type="checkbox" name="C1" value="{C1:h}">
>
> <!-- okay -->
> <input type="checkbox" name="C2" value="<? echo $C2;
> ?>">
>
> <!-- error: unexpected '{' -->
> <input type="checkbox" name="C3" {C3:h}>
>
> <!-- error: unclosed tags not supported -->
> <input type="checkbox" name="C4" <? echo $C4; ?> >
>
> --
> Mitchell Perilstein
> mitch at enetis dot net
> www.enetis.net/~mitch
>
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php