Flexy: IMG and Flexy:dynamic problems

From: Date: Tue, 16 Dec 2003 16:35:56 +0000
Subject: Flexy: IMG and Flexy:dynamic problems
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9593@lists.php.net to get a copy of this message
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.

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