And look at the Containable behaviour. Jeremy Burns Class Outfit
jeremybu...@classoutfit.com http://www.classoutfit.com On 17 May 2011, at 23:06, mmlunjwa wrote: > In your threads controller change the recursive value to 2: > > $this->threads->recursive = 2; > $event = $this->Threads->read(null, $id); > > The recursive property defines how deep CakePHP should go to fetch > associated model data via find(), findAll() and read() methods. > > Then in your view use: > > $post['User']['username'] > > I suggest you study the manual: book.cakephp.org/view/1063/recursive > > -- > View this message in context: > http://cakephp.1045679.n5.nabble.com/Accessing-variables-in-referenced-tables-in-views-tp2638874p4404922.html > Sent from the CakePHP mailing list archive at Nabble.com. > > -- > 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+unsubscr...@googlegroups.com For more options, visit this group at > http://groups.google.com/group/cake-php -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php