diff options
| author | Simon | 2011-03-14 16:17:48 +0100 |
|---|---|---|
| committer | Simon | 2011-03-14 16:17:48 +0100 |
| commit | d583d0071274a8843b3a3cd7b7ec72d5a9942f53 (patch) | |
| tree | 6fd2437ddefc93f94c0fbc3b1edcedcab02dd04a /application/modules/dev/controllers/ClientController.php | |
| parent | Application in 3 Modules gesplittet, Dev = unsere entwicklungsumgebung, user ... (diff) | |
| download | pbs2-d583d0071274a8843b3a3cd7b7ec72d5a9942f53.tar.gz pbs2-d583d0071274a8843b3a3cd7b7ec72d5a9942f53.tar.xz pbs2-d583d0071274a8843b3a3cd7b7ec72d5a9942f53.zip | |
Zweiter push um die änderungen hinzuzufügen, Trennung der Ansichten
Diffstat (limited to 'application/modules/dev/controllers/ClientController.php')
| -rw-r--r-- | application/modules/dev/controllers/ClientController.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/application/modules/dev/controllers/ClientController.php b/application/modules/dev/controllers/ClientController.php index affa780..b6bcb7e 100644 --- a/application/modules/dev/controllers/ClientController.php +++ b/application/modules/dev/controllers/ClientController.php @@ -1,6 +1,6 @@ <?php -class ClientController extends Zend_Controller_Action +class dev_ClientController extends Zend_Controller_Action { public function init() @@ -20,11 +20,11 @@ class ClientController extends Zend_Controller_Action $hh = $this->_request->getParam('hh'); if (!isset($_POST["add"])){ - $addclient = new Application_Form_Client(array('buttontext' => 'Create Client')); + $addclient = new dev_Form_Client(array('buttontext' => 'Create Client')); $this->view->addclient = $addclient; } else{ - $addfilterform = new Application_Form_Client(array('buttontext' => 'Create Client'),$_POST); + $addfilterform = new dev_Form_Client(array('buttontext' => 'Create Client'),$_POST); if ($addfilterform->isValid($_POST) || ($mac != '' && $hh != '') ) { $client = new Application_Model_Client(); $mac = ($mac!='')?$mac:$_POST['macadress']; @@ -61,12 +61,12 @@ class ClientController extends Zend_Controller_Action $mapper = new Application_Model_ClientMapper(); $mapper->find($clientID,$data); - $editclient = new Application_Form_Client(array('buttontext' => 'Edit Client')); + $editclient = new dev_Form_Client(array('buttontext' => 'Edit Client')); $editclient->populate($data->toArray()); $this->view->editclient = $editclient; } else{ - $editclient = new Application_Form_Client(array('buttontext' => 'Edit Client'),$_POST); + $editclient = new dev_Form_Client(array('buttontext' => 'Edit Client'),$_POST); if ($editclient->isValid($_POST) || ($mac != '' && $hh != '') ) { $client = new Application_Model_Client($_POST); $client->setID($this->_request->getParam('clientID')); |
