Skip to content

Instantly share code, notes, and snippets.

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