1.) I used Akrabats tutorial and source codes to create a music album
application.
2.) It was missing a category column so I created another table called
category in phpMyadmin.
3.) In order to connect Akrabats "album table" with my "category table" I
used the code from PeacockSuit.com
Populate a Zend_Form select with database returned data
http://www.peacocksuit.com/blog/2008/08/30/populate-a-zend_form-select-with-mysql-returned-data/
Here are some snapshots of the things mentioned above to help me explain
things more clearly, before I start asking too many questions all at once.
But in general my main problem revolves around the Edit function/picture.
http://zend-framework-community.634137.n4.nabble.com/file/n2255824/2re45zc.jpg
http://zend-framework-community.634137.n4.nabble.com/file/n2255824/2zthjl0.jpg
http://zend-framework-community.634137.n4.nabble.com/file/n2255824/25q9c0w.jpg
http://zend-framework-community.634137.n4.nabble.com/file/n2255824/3013mdh.jpg
http://zend-framework-community.634137.n4.nabble.com/file/n2255824/b5kun4.jpg
QUESTION
As you can see I can create new album posts assigning any category I want to
each music album.
The problem I have is with the Edit page. For instance when I select the
album Batman with category Jazz. The Edit page doesn't show the correct
category it always displays the first category option not the pre-assigned
option.
How, where, what should I do to fix this?
Here are some of my relevant files for this music album application. I hope
this helps in clarifying my problem.
index.phtml
http://pastebin.com/ehTU6uPK
IndexController.php
http://pastebin.com/ACKQtkEt
class Form_Album extends Zend_Form
http://pastebin.com/kik5kHXE
class Model_DbTable_Albums2 extends Zend_Db_Table_Abstract
http://pastebin.com/0yG0dgh7
class Model_DbTable_Category extends Zend_Db_Table
http://pastebin.com/p3SGEZxK
--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/Zend-Form-select-Edit-problem-tp2255824p2255824.html
Sent from the Zend DB mailing list archive at Nabble.com.
没有评论:
发表评论