Re: Flexy: IMG and Flexy:dynamic problems

From: Date: Wed, 21 Jan 2004 09:15:55 +0000
Subject: Re: Flexy: IMG and Flexy:dynamic problems
References: 1  Groups: php.pear.general php.pear.general 
Request: Send a blank email to pear-general+get-10262@lists.php.net to get a copy of this message
I've tested this with the latest release - it seems to work: (it's at the end of the example/examplt.html /example/test.php in CVS) in template: <img name="picture" id="picture" flexy:dynamic> in script: $elements['picture'] = new HTML_Template_Flexy_Element('img', "width='400' height='400' src='any.gif'"); $template->outputObject($tmp,$elements); Regards Alan Giorgio Gorla wrote:
in template: <img name="picture" id="picture"> or <img name="picture" id="picture" flexy:dynamic> in script code: $tpl->elements['picture'] = new HTML_Template_Flexy_Element('img', "width='400' height='400' src='any.gif'"); The expected result is: <img name="picture" id="picture" width="400" height="400" src="any.gif"> Without flexy:dynamic attribute, the script doesn't change the img tag in the template. With flexy:dynamic attribute, the script produces the error: Fatal error: Call to undefined function: getattribute() in /usr/share/pear/HTML/Template/Flexy/Compiler/Standard/Tag.php on line 323 Workaround: If I replace in the template the img tag with a input tag and I change the tag property in img after, then I can modify the tag attributes.
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com

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