예제 #1
0
 private function postContactInfo(\Request $request)
 {
     $values = $request->getVars();
     Factory::post(Factory::load(), $values['vars']);
     $response = new \Http\SeeOtherResponse(\Server::getCurrentUrl(false));
     return $response;
 }
예제 #2
0
파일: Map.php 프로젝트: HaldunA/phpwebsite
 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;
 }