When we validate a attribute in function rule. This validation is server side or client-side validation.
For example, a validation class for incoming file when this file:
public function rules()
{
return array(
array('file','ext.MyValidators.fileNameValidator'),
array('file', 'file', 'types'=>'pdf','message'=>'Only files with these extensions are allowed: pdf',
'maxSize' => 1024 * 1024 * 2, // 2MB
'minSize '=>1024 * 2,
'tooLarge' => 'The file was larger than 2MB. Please upload a smaller file.',
'tooSmall'=>'The file was Too Small. Please upload a larger file.',
), );
}
In other words, all the validation on the Rule function Is server_side or client_side validation

Help














