Cnumbervalidator Error

I have been trying to add a form. When I run the code it gives me following error. Not sure whats going wrong. Notice the incorrect spelling on the word ‘integer’ as ‘interger’ in the debug message.

Check the LinkData::rules() method: typo intergerOnly <-> integerOnly





public function rules()

	{

		return array(

                      ...

			array('weight', 'numerical', 'integerOnly'=>true,'min'=>0,'max'=>100),

		

		);

	}




Thankyou, it was a typo in the rules.