$model=new Room;
// Uncomment the following line if AJAX validation is needed
// $this->performAjaxValidation($model);
if(isset($_POST['Room']))
{
$model->attributes=$_POST['Room'];
if($model->save()){
$this->redirect(array('admin','id'=>$model->id));
}
}
$this->render('create',array(
'model'=>$model,
));
I have this code and I want to save multiple models in a loop