What Difference Between Safe Property In Cvalidator Class And Safe Validator?

Hi, What difference between safe property in CValidator class and safe validator?

The safe validator is just an easy way to mark attributes as safe for massive assignment when no other validation rules apply to them in the current scenario. An example might be a free text input field where you don’t want to apply any restrictions to the length or content of the input.

The safe property can be set to false to allow you to set a validation rule without making the attribute massively assignable. This would be used for attributes which should only be set by application code, but which should still be validated for consistency before being saved. Perhaps you want to ensure that the controller action sets the "created_by" attribute to a valid user ID for newly created records.

Thank you Keith. Your answer is useful. :)