I have a site develop in cakephp 2.3.
Into my site a user can create products in every language: American
, Italian
, Japanese
, Russian
, etc.
Is it necessary to secure data or CakePHP automatically do this?
I have this model for example:
class Product extends AppModel {
public $name = 'Product';
public $validationDomain = 'validation_errors';
public $validate = array(
'name' => array(
'not_empty' => array(
'rule'=> 'notEmpty',
'message'=> 'No empty'
),
'string' => array(
'rule'=> 'alphanumeric',
'message'=> 'Alphanumeric'
)
),
)
);
}
My goal is that the string can contain blank space
, -
, _
, and maybe a japanese
or russian
character.
Do I need to make some validation function to do that because the string can contain be almost everything?
I don't know how a multi language field is secure in CakePHP.