The guide is pretty good and if you followed should work. I have seen that you have a table prefix, have you set that up? Is your country pointing to ‘{{country}}’ and table prefix on your config file ‘main.php’ set to ‘tbl_’?
To fill out the dropdown is as easy as calling CHtml::listData(Country::model()->findAll()) on the data parameter of the dropdownlist function… make sure your object returns something…
Hi, i followed the guide. the dropdown list was generated like twice when i was using the form then i started throwing and array to string conversion error.
Hello every, please i just started using yii and am having some difficulties doing a dropDownList from DB
i have two tables party and election_party with a relationship between the tables. i want it that when i select a party from the party table and add to the election party table it, the ID of the party from the party table will be saved in the the election_party table. will appreciate any guidance.