public static function contact($ctx) { $aid = $ctx->getPost('assessment_id'); $name = $ctx->getPost('name'); $num = $ctx->getPost('number'); $notes = $ctx->getPost('notes'); try { ADB::saveContact($aid, $name, $num, $notes); $ctx->redirect('/view/' . $aid); } catch (Exception $e) { return $e->getMessage(); } }