public function changepasswordAction() { $oModelUser = new Admin_Model_User(); $oFormChangePassword = new Admin_Form_ChangePassword(); $aPostData = array(); $sSuccess = ""; if ($this->_request->isPost()) { $sSuccess = "NO OK"; $aPostData = $this->_request->getPost(); if ($oModelUser->updatePassword($aPostData["old_password"], $aPostData["new_password"])) { $sSuccess = "OK"; } } $this->view->oFormChangePassword = $oFormChangePassword; $this->view->sSuccess = $sSuccess; }