Difference between #4 and #5 of
Using the jamselect widget with min and max values

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
[...]
2 0
1 follower
Viewed: 18 700 times
Version: 1.1
Category: How-tos
Written by: got 2 doodle
Last updated by: wei
Created on: Oct 23, 2010
Last updated: 13 years ago
Update Article

Revisions

View all history