I have thread show page (thread/show) with reply form on the bottom of the page. Replay form posts to post/add action. When reply is successfully added i can redirect everywhere. The problem is when there are some errors for example reply form is empty and post/add is called. I need to go to thread/show instead (with 'errors' array) and show errors there, because i have reply form there.
try {$forumPost->save();
} catch (ORM_Validation_Exception $e) {
$errors = $e->errors('');
//I need change url here to thread/show
}
Is it possible?