public function actionCreate()
{
$model = new Letter;
// Uncomment the following line if AJAX validation is needed
// $this->performAjaxValidation($model);
if(isset($_POST['Letter']))
{
$model->attributes=$_POST['Letter'];
$model->name = implode(",",$model->name);
if($model->save()){
$this->redirect(array( '/prf/activeCam', ));
}
}
$this->render('create',array(
'model'=>$model,
}
//Swopped Array Keys to its values.
$nameKeys = array_values($names);
$combineNames = array_combine($names, $nameKeys);
//Pass this into checkBoxList
echo $form->checkBoxList($model,'name',$combineNames);