http://book.cakephp.org/view/438/displayField

On Wed, Jan 7, 2009 at 7:55 PM, Nancy <[email protected]> wrote:
>
> Probably a simple question but I haven't been able to find the answer.
>
> I have the table Recipes and another Difficulties
>
> In recipe model:
> var $belongsTo = array('Difficulty');
>
> In difficulty model:
> var $hasMany = array('Recipe');
>
> The scaffolding always display the id number, not the text field
> (desc) I want, unless I name the text field "name" in Difficulties
> table.  I don't really want to do this.  How do I tell cakePHP to use
> a different field name from it's assumed default of name?
>
> Thanks!
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
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