Re: Re: HTML_DataObjects_Edit/Browse
| From: | nohuman | Date: | Mon, 10 May 2004 16:33:11 +0000 |
| Subject: | Re: Re: HTML_DataObjects_Edit/Browse | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12393@lists.php.net to get a copy of this message | ||
Thanks Alan!
>
> try {t:r} - it should show you where the errors are stored.
>
The error msg is in t.elements.<html_flexy_element>->suffix value, but this
is not accesible in template.
I haked the ../HTML/Template/Flexy/Element.php, and work fine like QuickForms
Regards
------------------------------------------------------------------
function toHtml($overlay=false)
{
//echo "BEFORE<PRE>";print_R($this);
$ret = $this;
if ($overlay !== false) {
$ret = HTML_Template_Flexy::mergeElement($this,$overlay);
}
if ($ret->override !== false) {
return $ret->override;
}
$prefix = $ret->prefix;
if (is_object($prefix)) {
$prefix = $prefix->toHtml();
}
$suffix = $ret->suffix;
if (is_object($suffix)) {
$suffix = $suffix->toHtml();
}
//echo "AFTER<PRE>";print_R($ret);
// tags that never should have closers
//////////////////////////////////////////////////////////////////
if($this->suffix) ///
print '<font
class="error">'.$this->suffix.'</font><br>'; ///
/////////////////////////////////////////////////////////////////
$tag = $this->tag;
if (strpos($tag,':') !== false) {
$bits = explode(':',$tag);
$tag = $bits[1];
}
$close = in_array(strtoupper($tag),array("INPUT","IMG")) ? ''
:
"</{$ret->tag}>{$suffix}" ;
return "{$prefix}<{$ret->tag}".$ret->attributesToHTML() .
'>'.
$ret->childrenToHTML() .$close;
} // end func toHtml