How do i apply same validation rule for 50 fields in 2.0
i am not interested in repeating rule for different field
public $validate = array(
'company' => array(
'notempty' => array(
'rule' => array('notempty'),
'message' => 'Cannot be Empty',
),
),
// rule for other 50 fields....
);
Possible solution:
Don’t understand why you want to determinate same validation 50 times. You can declare just one rule and use it for all your fields.
May be I misunderstood your question?