Hi , what is the correct sintaxys for write validation rules ?
by example . . .
array(‘first_name, date_update, date_birthdate ,compliance’,‘length’, ‘max’=>1)
OR
array(‘first_name’, ‘date_update’, ‘date_birthdate’ ,‘compliance’,‘length’, ‘max’=>1)
Both sintaxys are valid ?
or for second sintaxys we need a special configuration of PHP version ?
my php configuration:
PHP Version 5.6.40-0+deb8u12
Linux debiandb 4.9.0-18-amd64 #1 SMP Debian 4.9.303-1
Apache 2.0
Yii Version 1.1.13
Note: with the second sintaxys the app show errors, when we change to the first sintaxys all work good !