I’m making an job application form. In the db I have a number of fields normalized out ( previous employers, education, references, etc ). It’s InnoDB with lots of foreign keys.
They need to be able to update the application as well.
They are entering a lot items which I’m going to split between lot of tabs, each that does a ajax update to the database before going to the next tab, but I need to get the multiple entries first.
I know how to make a jQuery “Add Another Employer” button next to the employers, but I’m not sure how to make it all work within Yii.
There are fields from multiple tables, and multiple entries from individual tables, and I don’t know how to do the multiple entries.
How can I use activeTextField to work with the multiple employers? A single entry would be easy enough with
field names like employers[name], but I need something like employers[1][name] so I can just use a foreach.
Sorry for my lack of clarity here, but I’m not altogether certain how to put it together and am on a rather short time table.
Many thanks,
Adam
EDIT:
Ok, that was way broad. It’s mainly the activeTextField field names for the tables with multiple entries on the same form that I need the specific help with. Thanks.