diff --git a/api/app/View/Events/json/index.ctp b/api/app/View/Events/json/index.ctp new file mode 100644 index 000000000..13cb1244b --- /dev/null +++ b/api/app/View/Events/json/index.ctp @@ -0,0 +1 @@ +echo json_encode($events); diff --git a/api/app/View/Events/json/view.ctp b/api/app/View/Events/json/view.ctp new file mode 100644 index 000000000..b320feb4d --- /dev/null +++ b/api/app/View/Events/json/view.ctp @@ -0,0 +1 @@ +echo json_encode($event); diff --git a/api/app/View/Events/xml/index.ctp b/api/app/View/Events/xml/index.ctp new file mode 100644 index 000000000..af960238f --- /dev/null +++ b/api/app/View/Events/xml/index.ctp @@ -0,0 +1,2 @@ +$xml = Xml::fromArray(array('response' => $events)); +echo $xml->asXML(); diff --git a/api/app/View/Events/xml/view.ctp b/api/app/View/Events/xml/view.ctp new file mode 100644 index 000000000..7f64e422f --- /dev/null +++ b/api/app/View/Events/xml/view.ctp @@ -0,0 +1,2 @@ +$xml = Xml::fromArray(array('response' => $event)); +echo $xml->asXML();