Create an action

public function actionSearch()

{


	$model=new anagrafe;


	if(isset($_POST['anagrafe']))


	{


		$model->attributes=$_POST['anagrafe'];


		if($model->save(false))


			$this->redirect(array('view','id'=>$model->ANAGRA_ID));


	}





	$this->render('search',array(


		'model'=>$model,


	));


}

I should take the fields of the model anagrafe and use them to search the db name.

Was that a question?