summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorBjörn Geiger2011-09-22 16:01:01 +0200
committerBjörn Geiger2011-09-22 16:01:01 +0200
commite1821ddb88c0af20b46200c499e12b97a93baa3c (patch)
tree4c40d5485ae0d6446bd4045f7b675bede894e8ae /application
parentshow repeat Events (diff)
downloadpoolctrl-e1821ddb88c0af20b46200c499e12b97a93baa3c.tar.gz
poolctrl-e1821ddb88c0af20b46200c499e12b97a93baa3c.tar.xz
poolctrl-e1821ddb88c0af20b46200c499e12b97a93baa3c.zip
minor
Diffstat (limited to 'application')
-rwxr-xr-xapplication/controllers/EventController.php3
-rw-r--r--application/views/scripts/event/getrepeatevents.phtml7
2 files changed, 2 insertions, 8 deletions
diff --git a/application/controllers/EventController.php b/application/controllers/EventController.php
index 68e882e..454e1fd 100755
--- a/application/controllers/EventController.php
+++ b/application/controllers/EventController.php
@@ -644,9 +644,10 @@ class EventController extends Zend_Controller_Action
public function getrepeateventsAction() {
$this->_helper->layout->disableLayout();
+ $this->_helper->viewRenderer->setNoRender();
$eventTitle = $this->_request->getParam("title");
$events = $this->eventMapper->findBy(array('title' => $eventTitle, 'repeat' => 1));
- $this->view->events = $events;
+ echo json_encode($events);
}
/*
diff --git a/application/views/scripts/event/getrepeatevents.phtml b/application/views/scripts/event/getrepeatevents.phtml
deleted file mode 100644
index f409c2b..0000000
--- a/application/views/scripts/event/getrepeatevents.phtml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-if(count($this->events) == 0){
- echo "no Events";
-} else {
- print_r($this->events);
-}
-?> \ No newline at end of file