Hi,
i tried to overwrite some attribute after the form sent…
I can overwrite attributes from the CHtml::activeTextField,
but not from the CHtml::activeFileField
do you know why?
if(isset($_POST['users']))
{
$users->attributes=$_POST['users'];
$users->description='test desc'; //TEXT FIELD - this attribute can I overwrite
$users->photo=some_other_file_field //FILE FIELD - and this not
if($users->save()){
$this->redirect(array('admin'));
}
}