2009年10月18日星期日

[fw-db] How can I make my GENRE column display its values instead of its ID numbers?

I tried to read this Zend database chapter which resembles much of the examples in the ZFiA book. But the Zend manual just makes me more confused compared to when I started.
http://framework.zend.com/manual/en/zend.db.table.relationships.html
And the practical code examples I'm looking for doesn't seem to be covered in the Zend manual. Maybe I missed it because of my inexperience with databases.

By the way my code is 99% based on the Akrabat 1.8 tutorial.
http://akrabat.com/zend-framework-tutorial/



Question


How can I make my GENRE column display its values/contents instead of its ID numbers?


(picture) - Genre column doesn't display correct.
http://i27.tinypic.com/2larj0h.jpg



* DbTable Genre
http://pastebin.com/m5014a3a8

* DbTable Albums
http://pastebin.com/m3c12860e

* Form Album
http://pastebin.com/m9a222c9

* IndexController
http://pastebin.com/m75644a44



/apprentice

没有评论: