private function postContactInfo(\Request $request) { $values = $request->getVars(); Factory::post(Factory::load(), $values['vars']); $response = new \Http\SeeOtherResponse(\Server::getCurrentUrl(false)); return $response; }
private function locationString() { $json = array(); $contact_info = \contact\Factory\ContactInfo::load(); $physical_address = $contact_info->getPhysicalAddress(); try { $json['address'] = Factory::getGoogleSearchString($physical_address); } catch (\Exception $e) { $json['error'] = $e->getMessage(); } $response = new \View\JsonView($json); return $response; }