diff --git a/web/api/app/Controller/Event_DataController.php b/web/api/app/Controller/EventDataController.php similarity index 100% rename from web/api/app/Controller/Event_DataController.php rename to web/api/app/Controller/EventDataController.php diff --git a/web/api/app/Model/Event_Data.php b/web/api/app/Model/EventData.php similarity index 100% rename from web/api/app/Model/Event_Data.php rename to web/api/app/Model/EventData.php diff --git a/web/api/app/View/EventData/json/add.ctp b/web/api/app/View/EventData/json/add.ctp new file mode 100644 index 000000000..d2d25dc95 --- /dev/null +++ b/web/api/app/View/EventData/json/add.ctp @@ -0,0 +1 @@ +echo json_encode($event_data); diff --git a/web/api/app/View/EventData/json/edit.ctp b/web/api/app/View/EventData/json/edit.ctp new file mode 100644 index 000000000..d2d25dc95 --- /dev/null +++ b/web/api/app/View/EventData/json/edit.ctp @@ -0,0 +1 @@ +echo json_encode($event_data); diff --git a/web/api/app/View/EventData/json/index.ctp b/web/api/app/View/EventData/json/index.ctp new file mode 100644 index 000000000..f96996061 --- /dev/null +++ b/web/api/app/View/EventData/json/index.ctp @@ -0,0 +1,5 @@ +Paginator->params(); + echo json_encode($array); +?> diff --git a/web/api/app/View/EventData/json/view.ctp b/web/api/app/View/EventData/json/view.ctp new file mode 100644 index 000000000..b320feb4d --- /dev/null +++ b/web/api/app/View/EventData/json/view.ctp @@ -0,0 +1 @@ +echo json_encode($event); diff --git a/web/api/app/View/EventData/xml/add.ctp b/web/api/app/View/EventData/xml/add.ctp new file mode 100644 index 000000000..d6a9155e9 --- /dev/null +++ b/web/api/app/View/EventData/xml/add.ctp @@ -0,0 +1,2 @@ +$xml = Xml::fromArray(array('response' => $event_data)); +echo $xml->asXML(); diff --git a/web/api/app/View/EventData/xml/edit.ctp b/web/api/app/View/EventData/xml/edit.ctp new file mode 100644 index 000000000..d6a9155e9 --- /dev/null +++ b/web/api/app/View/EventData/xml/edit.ctp @@ -0,0 +1,2 @@ +$xml = Xml::fromArray(array('response' => $event_data)); +echo $xml->asXML(); diff --git a/web/api/app/View/EventData/xml/index.ctp b/web/api/app/View/EventData/xml/index.ctp new file mode 100644 index 000000000..d6a9155e9 --- /dev/null +++ b/web/api/app/View/EventData/xml/index.ctp @@ -0,0 +1,2 @@ +$xml = Xml::fromArray(array('response' => $event_data)); +echo $xml->asXML(); diff --git a/web/api/app/View/EventData/xml/view.ctp b/web/api/app/View/EventData/xml/view.ctp new file mode 100644 index 000000000..7f64e422f --- /dev/null +++ b/web/api/app/View/EventData/xml/view.ctp @@ -0,0 +1,2 @@ +$xml = Xml::fromArray(array('response' => $event)); +echo $xml->asXML();