Check Unique value in a Model
App::Utility()->Unique(Value, Options)
Parameter |
Description |
---|---|
Value |
Value to check |
Options |
Define Model and file to check. |
See bellow example:
$return = App::Helper('Validation')
->Unique(
'test@example.com',
array(
'model'=>'Admin',
'field'=>'email'
)
);