How to display results from a HABTM relationship in a view?
问题 I have a HABTM relationship between a books table and an authors table, joined with an authors_books table. However, I can't find a solution to display the fields firstname, lastname and fullname in my view. book-model: class Book extends AppModel { var $name = 'Book'; var $hasAndBelongsToMany = array( 'Author' => array( 'className' => 'Author', 'joinTable' => 'authors_books', 'foreignkey' => 'book_id', 'associatioanForeignKey' => 'author_id' ) ); author-model: class Author extends AppModel {