Skip to content

Instantly share code, notes, and snippets.

@k1LoW
Forked from ichikaway/gist:152442
Created July 24, 2009 04:49
Show Gist options
  • Save k1LoW/153852 to your computer and use it in GitHub Desktop.
Save k1LoW/153852 to your computer and use it in GitHub Desktop.
<?php
class AppModel extends Model {
//Validation message i18n
function invalidate($field, $value = true){//$value example > __('Users Error' ,true)
parent::invalidate($field, $value);
$this->validationErrors[$field] = $value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment