Re: java struts like tag lib for php??
| From: | Alex | Date: | Mon, 03 Dec 2001 08:40:33 +0000 |
| Subject: | Re: java struts like tag lib for php?? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-570@lists.php.net to get a copy of this message | ||
I am currently working on a struts like project in PHP
See ephp on SourceForge : http://sourceforge.net/projects/ephp (early
stage - browse the CVS src/lib/ and src/lib-test/)
It is mainly based on the Smarty template engine wich allow user defined
tags.
Alex
<gilles@clixicon.nl> a écrit dans le message news:
Pine.LNX.4.21.0111301348080.12011-100000@clixicon.clixicon.nl...
> 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
>