On Fri, Aug 20, 2010 at 10:48 AM, james livsey
<[email protected]> wrote:
> Hi cricket,
>
> thanks for that. Yes thats the kind of thing im looking for but the fields i
> need to use as the display field actually belong to another model. Is that
> possible to declare in the model?
> Like
>     $displayField = OtherModel.displayField;
> ?

$this->Model->OtherModel->displayField = '...';

Or, you can define it in the other model if it's not going to be
changing. The above is something you'd do if displayField needed to be
changed in certain situations. If you don't need that put it in the
class definition..

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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