Crud Join Two Tables

Hi,

I am new to Yii,

I have two models: Customers and Jobs.

I also have two controllers: CustomersController and JobsController.

I have also generated CRUD’s for each model.

So when I navigate to the job view and click create jobs the application allows me to create the new record.

Also when I navigate to the customer view and click create customers the application allows me to create the new record.

Which is fine but I want to be able to create a new customer and a new job all from the same form.

Any help would be greatly appreciated.

Many Thanks.

And what is the relation Customers<->Jobs?

1 - 1

1 - n

n - 1

m - n

or is there no relation between Customers and Jobs?

The relation is that one customer can have many jobs.

Many Thanks

The you can take a look at the extension multimodelform and the demo with group/members.