Re: about the fields chosen for the select tag

2007-10-17 Thread bujanga

Thank you Geoff for the link and Nate for the explanation. I didn't
know afterFind could be used with generateList in this manner. Very
helpfull

Gary Dalton

On 10/16/07, Geoff Ford <[EMAIL PROTECTED]> wrote:
>
> http://groups.google.com/group/cake-php/search?group=cake-php&q=generateList+multiple+field
>
> THis one in particular
> http://groups.google.com/group/cake-php/browse_thread/thread/c5709f46064b4106/853e167148d67f7d?lnk=gst&q=generateList+multiple+field#853e167148d67f7d
> Basically nate suggests using afterFind to create a virtual full_name
> field to use for $displayField
>
> Geoff
> --
> http://lemoncake.wordpress.com
>
> On Oct 17, 1:24 pm, checkerboard <[EMAIL PROTECTED]> wrote:
> > Hi guys,
> > Currently I am having two tables authors and books having M2M
> > relationship.
> > The author table has three attributes  id ,fname and lname. Now I am
> > trying to display a select tag in the book entry form consisting of
> > the author last name and first name.
> > If I define the var $displayField as last name or first name then it
> > won't be sufficient since it will display only one field. What I want
> > is to concatenate both the first name and last name into one and
> > display it in the select tag. How can I implement this.
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: about the fields chosen for the select tag

2007-10-16 Thread Geoff Ford

http://groups.google.com/group/cake-php/search?group=cake-php&q=generateList+multiple+field

THis one in particular
http://groups.google.com/group/cake-php/browse_thread/thread/c5709f46064b4106/853e167148d67f7d?lnk=gst&q=generateList+multiple+field#853e167148d67f7d
Basically nate suggests using afterFind to create a virtual full_name
field to use for $displayField

Geoff
--
http://lemoncake.wordpress.com

On Oct 17, 1:24 pm, checkerboard <[EMAIL PROTECTED]> wrote:
> Hi guys,
> Currently I am having two tables authors and books having M2M
> relationship.
> The author table has three attributes  id ,fname and lname. Now I am
> trying to display a select tag in the book entry form consisting of
> the author last name and first name.
> If I define the var $displayField as last name or first name then it
> won't be sufficient since it will display only one field. What I want
> is to concatenate both the first name and last name into one and
> display it in the select tag. How can I implement this.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---