Hi Michal

yes, you can catch the exception from your DB layer in your action or in 
your model, add an error to the validation manager manually and return 
the name of the view which should show the form again. Setting errors 
works as follows:

$vm = $this->getContext()->getValidationManager();
$vm->setError(array('parameter'=>'error'));

Regards, Mathias

Michal Charemza wrote:
> Is there then a 'nice' way to go back to a 'failed validation'  
> state based on what happens within the model code?

_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to