php - how to disable validation rule of yii framework -


i created registration form using gii code generator in yii framework. gii code generator created validation rules in fields fname,lname,email,etc. trying put custom validation rule in fields. need disable other validation rule in field en-billet yii framework.

how suppose that.

assume have in model :

public function rules(){ return array(   array('firstname', 'length', 'max'=>20),   array('lastname', 'length', 'max'=>40), ); } 

this means validation method checks length of firstname , lastname, , checks length should not greater 20 , 40.

if want remove rule validating, can remove line, , put custom validation rules in it.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -