summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers')
-rw-r--r--application/controllers/EventController.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/application/controllers/EventController.php b/application/controllers/EventController.php
index bf10891..74271a3 100644
--- a/application/controllers/EventController.php
+++ b/application/controllers/EventController.php
@@ -54,9 +54,9 @@ class EventController extends Zend_Controller_Action
public function addAction()
{
if (!isset($_POST["add"])){
- $addForm = new user_Form_EventAdd();
+ $addForm = new Application_Form_EventAdd();
} else {
- $addForm = new user_Form_EventAdd(array($_POST));
+ $addForm = new Application_Form_EventAdd(array($_POST));
if ($addForm->isValid($_POST)) {
$event = new Application_Model_Event($_POST);
@@ -100,13 +100,13 @@ class EventController extends Zend_Controller_Action
public function editAction()
{
- $eventID = $this->_request->getParam('groupID');
+ $eventID = $this->_request->getParam('eventID');
if(!isset($eventID)) {
$this->_helper->redirector('add', 'event');
return;
} else {
if (isset($_POST["save"])){
- $editForm = new user_Form_EventEdit(array($_POST));
+ $editForm = new Application_Form_EventEdit(array($_POST));
if ($editForm->isValid($_POST)) {
$event = new Application_Model_Event($_POST);
$event->setID($eventID);
@@ -122,7 +122,7 @@ class EventController extends Zend_Controller_Action
} else {
$event = new Application_Model_Event();
$this->eventMapper->find($eventID, $event);
- $editForm = new user_Form_EventEdit();
+ $editForm = new Application_Form_EventEdit();
}
$this->view->editForm = $editForm;
}