Handling Several Database Tables In One View

I just checked the Model Generator in Gii, and I found it OK but only for one specific table only.

I want to process post requests in different tables…Any suggestions on how could I make this without difficulty?





Just double all lines in actionCreate, update and so on:

$model1= new Class1;

$model2= new Class2;

if (isset($_POST['Class1'])&& isset($_POST['Class1']))

and so on