Re: java struts like tag lib for php??
| From: | Jesus M. Castagnetto | Date: | Fri, 30 Nov 2001 21:48:24 +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-566@lists.php.net to get a copy of this message | ||
Look into several of the templates classes available, as well as the Form
classes, both in PEAR and elsewhere. Look at the www.php.net/support.php or
www.php.net/links.php, etc.
--- gilles@clixicon.nl wrote:
> 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
>
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, e-mail: pear-general-unsubscribe@lists.php.net
> For additional commands, e-mail: pear-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
=====
--- Jesus M. Castagnetto (jcastagnetto@yahoo.com)
__________________________________________________
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com