hi guys please help i’m a codeigniter developer and trying to learn yii.
my problem is i want to save data to two tables were one data is the employee and the other is EmployeeChildren
the EmployeeChildren should be an array since one employee can have many children.so the idea is to have a text box for employee fields and a list for EmployeeChildren field an add button where i can add children to list and save button to save all the data to there respective table.
See the "Another use case" section. It displays a parent record at the top and child records below that in a CGridView and dropdownlist. It saves the parent record and selected child records from the dropdownlist simultaneously.
please see the above link and help me to save the data to db…i’m also have the same problem but i don’t know how to do that…there i post my code so plz help me …