php - Yii reset field value on addError -
i'm looking reset field value when calling adderror function within controller.
$model->adderror('table_name','table "'.$model->table_name.'" used. pick new name.',array('value'=>$current_name));
can pass param values activeform textfield adderror function? , if so, how?
reset? set empty string after have added error.
$model->table_name = "";
Comments
Post a Comment