public function emaildoAction() { $params = $this->_params; if (User_Model_Account_EmailValidate::isValid($params, $msg)) { try { if ($this->_session->uid != "0") { $_user = new Common_Db_User(); //$user = $_user->getById($this->_session->uid); $set = array('email' => $params['email']); $where = array('uid = ?' => $this->_session->uid); $_user->update($set, $where); $this->view->message = Common_Message::get('success', 'Success'); } } catch (Exception $e) { $this->view->message = Common_Message::get('error', 'Unknown'); } } else { $this->view->message = Common_Message::get('error', $msg); } $this->loadLayout('layout-simple'); $this->render('email'); }