Comparing
#4 with
#5
Content
[...]
{
// NOTE: you should only define rules for those attributes that
// will receive user inputs.
return array(
// other rules are here
array('keywords', 'keywordCount',
'skipOnError'=>true,
'maxKeys'=>6,
'minKeys'=>2),
// keywords is the field in the table currently holding the submitted value
// $model->keywords
// keywordCount is the function (in the model) that will do the validation
//
//skipOnError, maxKeys and minKeys are all parameters that will be[...]