I have two models 'Company' and 'Vehicle'
And two tables in database named same as 'company_master' and 'vehicle_master'
company_master
fields: id,
name,
vehicle type,
country
vehicle_master
fields: id (auto increment),
company_id (foreign key),
model_name,
website,
comments
When I select a random company, from CGridView to update record, I will get a form to update, that's all fine.
But I need a blank form for vehicle_master to create a record, inside company's update form.
Above form is example of my html page "update" of company, along with initially "blank" form of Vehicle Detail.
I want to insert a new record when I click Add button of Vehicle Detail form.
Thanks in advance. God Bless Merry Christmas :-)