Re: DB_DataObject_FormBuilder_QuickForm and Smarty
| From: | Justin Patrin | Date: | Sun, 19 Dec 2004 21:18:26 +0000 |
| Subject: | Re: DB_DataObject_FormBuilder_QuickForm and Smarty | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-16329@lists.php.net to get a copy of this message | ||
On Mon, 20 Dec 2004 03:00:20 +0800, Muhyiddin A.M Hayat
<middink@indo.net.id> wrote:
>
> ----- Original Message -----
> From: "Justin Patrin" <papercrane@gmail.com>
> To: "Muhyiddin A.M Hayat" <middink@indo.net.id>
> Cc: <pear-general@lists.php.net>
> Sent: Monday, December 20, 2004 2:38 AM
> Subject: Re: [PEAR] DB_DataObject_FormBuilder_QuickForm and Smarty
>
> > On Mon, 20 Dec 2004 02:27:00 +0800, Muhyiddin A.M Hayat
> > <middink@indo.net.id> wrote:
> >> Dear,
> >>
> >> How to using DB_DataObject_FormBuilder_QuickForm and Smarty?
> >
> > The package is named DB_DataObject_FormBuilder.
> > DB_DataObject_FormBuilder_QuickForm is a driver for it. Admittedly
> > it's currently the only one, but the fact remains.
> >
> > You should look up using HTML_QuickForm with Smarty. There are
> > examples with the HTML_QuickForm package.
> >
>
> but, how to use DB_DataObject_FormBuilder_QuickForm get value from
> DB_DataObject and
> DB_DataObject_FormBuilder_QuickForm stored that value to DB_DataObject?
>
> do you know where is can i found example like that?
This is what FormBuilder does. There is a simple example in the code
source which youcan see here:
http://pear.php.net/package/DB_DataObject_FormBuilder/docs/0.10.3/DB_DataObject_FormBuilder/_DB_DataObject_FormBuilder-0.10.3_FormBuilder_php.html
>
> >> How to Using Lookup field in DB_DataObject_FormBuilder_QuickForm?
> >>
> >
> > What do you mean by using a lookup field?
>
> I would like to create <select> but that values from other table
> eg.
> [person]
> id
> name
> gender_id
>
> [gender]
> id
> name
>
> -------------------
>
> in person form there are 1 text and 1 select, the values of select is name
> from gender table.
Once you set up the field correctly in your db.links.ini file this
will be automatic (well, you have to set the linkDisplayFields for the
gender table as well).
For links:
http://pear.php.net/manual/en/package.database.db-dataobject.intro-relations.php
For the link display fields:
http://opensource.21st.de/tiki-index.php?page=Formbuilder+configuration+options#id783256
>
> >
> > --
> > Justin Patrin
> >
> > --
> > PEAR General Mailing List (http://pear.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
--
Justin Patrin