Re: DataObjectsFormBuilder - tripleLinks
| From: | Justin Patrin | Date: | Tue, 16 Nov 2004 18:27:54 +0000 |
| Subject: | Re: DataObjectsFormBuilder - tripleLinks | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15566@lists.php.net to get a copy of this message | ||
On Tue, 16 Nov 2004 16:03:34 +0100, Alexander Petri <alex.petri@gmx.de> wrote:
> i have three tables:
>
> user, hobbies, user_2_hobbies
>
> now i want to generate a form where the user can add his personal data
> and choose his hobbies which are given from the hobbies table
> this must be checkboxes - because he can select more than one hobby
>
> the user_2_hobbies table is my n:m connection which only contains the IDs
> of both tables...
>
> Is it possible to autogenerate a Form like this?
> can anyone give me a small example
> and give a hint how to fill my *.links.ini file?
>
That would be a crossLink, not a tripleLink. Have you seen the online docs?
http://opensource.21st.de/tiki-index.php?page=Formbuilder+configuration+options#id534757
For the links.ini file, go here:
http://pear.php.net/manual/en/package.database.db-dataobject.intro-relations.php
--
Justin Patrin