function updateusersAction() { $id = $this->_request->getParam('id'); $system = new Default_Model_User(); if ($this->_request->isPost()) { $this->view->purifier = Zend_Registry::get('purifier'); $conf = HTMLPurifier_Config::createDefault(); $purifier = new HTMLPurifier($conf); $email = $purifier->purify($this->_request->getParam('email')); $full_name = $purifier->purify($this->_request->getParam('full_name')); $phone = $purifier->purify($this->_request->getParam('phone')); $birth = $purifier->purify($this->_request->getParam('birth')); $sex = $purifier->purify($this->_request->getParam('sex')); $address = $purifier->purify($this->_request->getParam('address')); $id = $this->_request->getParam('id'); $system->update_Users($full_name, $email, $phone, $birth, $sex, $address, $id); } $users = $system->list_users($id); $this->view->user = $users; }