Thanks Jeremy Burns, I needed to know. Thanks again. On 12 jul, 09:23, Jeremy Burns | Class Outfit <[email protected]> wrote: > From within model1s_controller: > > $this->Model1->Model2->find('list'); > > This assumes that Model1 and Model2 have $hasMany & $belongsTo relationships > defined within them. > > Jeremy Burns > Class Outfit > > [email protected]http://www.classoutfit.com > > On 12 Jul 2010, at 16:10, Samueljslg wrote: > > > > > Hi Shaz, thanks for your help, but I need to show the field of another > > Model. To say the field name Model2. > > > On 12 jul, 05:47, Shaz <[email protected]> wrote: > >> class Model extends AppModel { > >> var $name = 'Model'; > >> var $displayField = 'name'; > > >> } > > >> Change 'name' to whatever you want to be shown (i.e. 'title' etc) > > >> On 10 July, 20:58, Samueljslg <[email protected]> wrote: > > >>> Hello friends, I am starting with cakephp, I have a problem, you want > >>> to show it in the field of another list related model to work, as I > >>> do???. In the cake manual says "The displayField attribute specifies > >>> which field in the database should be used as a label for the record." > >>> With the above I understand that if you can, so easy to define a > >>> variable, anyone knows ????. Or if I can do otherwise. I was watching > >>> the loadModel method (). Thanks. > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 > > athttp://groups.google.com/group/cake-php?hl=en
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
