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

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

python - Received unregistered task using Celery with Django -

c# - Delving into the world of XML (Windows Phone) Error I dont understand (The ' ' character, hexadecimal value 0x20, cannot be included in a name.) -