I’m trying to create a custom photo gallery module using the instructions in http://www.magentocommerce.com/wiki/custom_module_with_custom_database_table.
The guide works fine with some minor modifications, but I need two database tables, and I can’t figure out how to get at the data from the second table.
Basically I have gallery, and gallery_images. gallery_images has a foreign key to gallery, so each gallery can have multiple images.
I can display the info in gallery just fine, but how do I display each gallery’s gallery_image?
I’ve been looking at magento’s poll module for inspiration, but so far nothing has worked.