Revision #5 has been created by wei on Oct 25, 2010, 1:56:41 AM with the memo:
fix code formatting
« previous (#4)
Changes
Title
unchanged
Using the jamselect widget with min and max values
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
Form validation, Widgets
Content
changed
[...]
{
// 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[...]