$val = Validation::instance('Model_Example'); $val->set_message('password_hash', 'Passwort darf nicht leer sein');
Jelmer Schreuder wrote on Tuesday 6th of September 2011:The Observer_Validation uses an instance named after the Model's class. For validating Model_Example this might look like this:$val = Validation::instance('Model_Example'); $val->set_message('password_hash', 'Passwort darf nicht leer sein');
You can also set validation messages in a lang file named validation.php by the way, which is the much preferred way to the above. There's a small example of such a file in the core.
It looks like you're new here. If you want to get involved, click one of these buttons!