java struts like tag lib for php??
| From: | gilles at clixicon dot nl | Date: | Fri, 30 Nov 2001 13:06:11 +0000 |
| Subject: | java struts like tag lib for php?? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-563@lists.php.net to get a copy of this message | ||
howdy,
i'm totaly new to pear.
but i was wondering if there's anything around that resembles java tag
libs.
cant seem to find anything on that.
basicly what im looking for is something that will filter out tags
from html code like these (pseudo code):
---------------------------------------------
<form:write name="first
name" db_field="first_name" type="text" size="40"
maxlength="38" />
<form:write name="Sur
name" db_field="sur_name" type="text" size="40"
maxlength="38" />
--------------------------------------------
and translates it into something like:
------------------------------------------------
$form=array(
"First
name"=>array("db_field"=>"first_name","type"=>"text","size"=>"40","maxlength"=>"38"),
"Sur
name"=>array("db_field"=>"sur_name","type"=>"text","size"=>"40","maxlength"=>"38")
);
echo $create_form = new from_class($form);
-------------------------------------------------------
is there something around that does something similar?
if not,
how do you guys think i should tackle this in order to get something like
this to work.
i think this would be a nice way to seperate code from html.
any advice/sugestions is/are welcome.
tnx,
gilles