Guest User

Untitled

a guest
Jul 19th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. function googlemapjs(){
  2. SSViewer::set_source_file_comments(false);
  3. ContentNegotiator::disable();
  4. $this->getResponse()->addHeader('Content-Type', 'text/javascript; charset="utf-8"');
  5. return $this->renderWith("GoogleMapJS");
  6. }
  7. function googlemapxml(){
  8. SSViewer::set_source_file_comments(false);
  9. ContentNegotiator::disable();
  10. $data = self::getWoning();
  11. $this->customise(array(
  12. 'Adressen' => $data
  13. ));
  14. $this->getResponse()->addHeader('Content-Type', 'application/xml; charset="utf-8"');
  15. return $this->renderWith("GoogleMapXML");
  16. }
  17.  
  18. <script src="$Top.URLSegment/googlemapjs/$ID" type="text/javascript"></script>
Add Comment
Please, Sign In to add comment