Created
July 23, 2009 02:28
-
-
Save ichikaway/152442 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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