Ver Mensaje Individual
  #6 (permalink)  
Antiguo 04/07/2012, 11:24
Avatar de carlos_belisario
carlos_belisario
Colaborador
 
Fecha de Ingreso: abril-2010
Ubicación: Venezuela Maracay Aragua
Mensajes: 3.156
Antigüedad: 14 años
Puntos: 461
Respuesta: Yii framework

es que el metodo setAtributes espera como parametro es un array de la siguiente manera
Código PHP:
Ver original
  1. $attr = array('atributo1' => 'valor');
entonces en tu caso pudieras hacer lo siguiente

Código PHP:
Ver original
  1. $model->setAttributes($_POST['form']);
  2. $model->setAttributes(array('Cfecha' => date('yyy-mm-dd'));
verifica y nos comentas si te sirvio, saludos
__________________
aprende d tus errores e incrementa tu conocimientos
it's not a bug, it's an undocumented feature By @David
php the right way