Re: displaying data from has_and_belongs_to_many (habtm) relationship

2006-05-12 Thread John Anderson
What needs to be changed? (btw: I think we need to check out the manual to see why some of the view code is missing carriage returns. Some views are still getting rendered as a single line on the manual site.) -- J On May 12, 2006, at 3:50 AM, gwoo wrote: > > Check out > http://manual.cake

Re: displaying data from has_and_belongs_to_many (habtm) relationship

2006-05-12 Thread gwoo
Check out http://manual.cakephp.org/chapter/6 there is an example towards the bottom with tags. in short: $this->set('post', $this->Post->read(); then foreach($post['Tag'] as $tag) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

displaying data from has_and_belongs_to_many (habtm) relationship

2006-05-12 Thread mamaf
Hi, Could someone explain how to display say for example : a post table a tag table a posts_tags table (habtm relationship) in a post view, how can i display (for example in list) the list of tag names associated with this post ? and in the other hand, in a tag view, how to display all the post