i added two new columns in my db table, and then i defined these new columns in the table model itself, and then, when i called
$model->getAttributes()
the two new columns didn't appear in the array output of $model->getAttributes() method call
there's no schema caching set in my configs, any idea how to solve this?, and how am I gonna get the value of the input forms of the new added columns from the front-end if i have a problem in showing off the two newly added columns ?
e.g
new columns INHOUSE OUTHOUSE
//view
<?php echo $form->checkBox($model,'INHOUSE',array("id"=>"inhouse","value"=>1, "uncheckValue"=>0));?>
<?php echo $form->checkBox($model,'OUTHOUSE',array("id"=>"outhouse","value"=>1, "uncheckValue"=>0));?>
//controller update action
i tried to save the value of the INHOUSE and OUTHOUSE didn't get saved when i do
$model->attributes = $_POST['users'];
$model->save();
NOR
$model->INHOUSE = $_POST['users']['INHOUSE'];
$model->OUTHOUSE = $_POST['users']['OUTHOUSE'];
$model->save;
any ideas how to solve all those problems?