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

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -