Hi togehter,

i'am new in the development Webapplications in CakePHP.

And for the beginning i've an absolute newbie question.

My DB model has at the moment two tables -> Members and Bills

Member hasMany Bills
Bill belongsTo Member

In my "bill add view" i've currently this entry:

echo $form->input('member_id');

The result is a dropdownlist with all the ID's available in the
Members table. But here i don't want to see the ID, i want to see the
"lastname" from the "lastname" column.

Whats the best way to do this?

I've a secondary question ;-)

In the Members table i've two columns "lastname" and "firstname". But
in the most cases i want to display the two names concatenated
($lastname . ' ' . $firstname) for this i want to store the
concatenated string in a "pseudo" column "completename"  (to acess it
with [member][completename]). How can i do this?

Thank you very much in advance!

Best regards
Tom

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to