Re: [phplib] Combining tpl_form with templates ? From: Jeroen Laarhoven (jeroen <email protected>)
Date: 01/27/01

>I have just created a script that uses tpl_forms from the phplib.
>
>How can I use the script together with the template class to get
>something like this working:

Check out Ulfs new Form stuff together with form_flow example.

This does all you want, but ... no doc yet, so it takes some research.
Read source and Ulfs posts in this list and on the developers list.

I am using it now for a for a few days (building a
"form/result-page-generator" around it, including prototyping). It's a nice
design and almost no problems found yet.

Greetings
Jeroen.

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Jeroen Laarhoven, Zwolle, Netherlands
business: jeroen <email protected>, www.webbridge.nl
private: jeroen <email protected>, www.zwolnet.com
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

----- Original Message -----
From: "Emre Bastuz" <info <email protected>>
To: <phplib <email protected>>
Sent: Saturday, January 27, 2001 1:53 PM
Subject: [phplib] Combining tpl_form with templates ?

Hi,

I have just created a script that uses tpl_forms from the phplib.

How can I use the script together with the template class to get
something like this working:

<td>{SOMETHING}:</td>
<td align=right><? $this->form_data->show_element("something"); ?></td>

where {SOMETHING} is supposed to be the description of the input field
and "$this->form_data->show_element("something")" is supposed to be the
input field itself ?

The rendered result should look like this:

<td>Please enter something:</td>
<td><input type=text name=something></td>

Using each feature for itself (form and template) is no problem, but
I´m afraid there is no way of combining the two features, or is there ? :)

Regards,

Emre

--
Emre Bastuz
info <email protected>              http://www.emre.de
UIN: 561260           PGP Key ID: 0xAFAC77FD

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>