Saturday, November 5, 2011

Re: How to get related username in view?

On Nov 5, 5:41 am, Jeremy Burns | Class Outfit
<jeremybu...@classoutfit.com> wrote:
> Sometimes, I give up.
>

OK, after correcting some mistakes I got it to work. To start with I
don't have a "name" field in the users table, it's "username", OK that
one was my fault. Secondly it should be 'contain' not 'Contain'.
Lastly when specifying the fields in the array I did not need
'user.id' or 'user.username' just 'id' and 'username'.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate