Re: override method in Template_Flexy

From: Date: Thu, 29 Jul 2004 10:03:47 +0000
Subject: Re: override method in Template_Flexy
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13903@lists.php.net to get a copy of this message
Apply this change to Flexy/Element.php http://cvs.php.net/diff.php/pear/HTML_Template_Flexy/Flexy/Element.php?r1=1.27&r2=1.28&ty=u Regards Alan cron@odi.com.br wrote:
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>
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com

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