summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/controllers/EventController.php10
-rw-r--r--application/views/scripts/event/index.phtml2
2 files changed, 6 insertions, 6 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;
}
diff --git a/application/views/scripts/event/index.phtml b/application/views/scripts/event/index.phtml
index 1bf6deb..0b9e352 100644
--- a/application/views/scripts/event/index.phtml
+++ b/application/views/scripts/event/index.phtml
@@ -1,6 +1,6 @@
<h1>Events</h1>
<?php echo $this->formButton('addEvent', 'Add Event', array(
- 'onclick' => 'self.location="/user/event/add/"',
+ 'onclick' => 'self.location="/event/add/"',
'class' => 'addbutton'))
?>
<div class='listelement'>