Hi All
I am stucked in a strange problem . I have a controller with a create action. The controller is written below
public function actionCreate(){
$model=new Division();
if(isset($_POST['Division'])){
$model->attributes=$_POST['Division'];
if($model->save()){
$this->redirect(array('admin'));
}
}
$this->render('create',array(
'model'=>$model,
));
}
Now the problem is that the values that I am submitting in the form are getting submitted two times ie there are two same entries in the database every time.
I have done these types of things many a times and never faced any problem but this thing is making me mad now…
Kindly Help
Regards