Revision #5 was created by wei on Oct 25, 2010, 1:56:41 AM.
fix code formatting
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