override method in Template_Flexy
| From: | cron at odi dot com dot br | Date: | Wed, 28 Jul 2004 15:17:51 +0000 |
| Subject: | override method in Template_Flexy | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13893@lists.php.net to get a copy of this message | ||
Hello,
I´m using the "override" method to change the html of a form tag using
Flexy, "override" work fine for every other input tag i have but it does not
work for the tag FORM.
Ps: i dont want to change atributes like $arr_ele["form1"]->action =
"teste.php", i need to replace the whole tag.
I have the falow code:
$obj_flexy = new HTML_Template_Flexy();
$obj_flexy->compile("user.html");
$arr_ele = $obj_flexy->getElements();
// i´m setinf the override to new html
$arr_ele["form1"]->override = "<form name="form1"
id="form1"
action="test.php">";
Page user.html:
"<form name="form1" id="form">"
</form>
Output is :
<form name="form1" id="form">
</form>
Should be
<form name="form1" id="form" action="test.php">
</form>