publicfunctionactionSaveModel($id){
//save the data as you did in the properly action. For exampleif ($_POST['TheModel']) {
$model = new TheModel();
$model->attributes = $_POST['TheModel'];
$model->save();
}
}