/** * Change password in your account */ public function changePasswordAction() { $text = $this->getRequest()->post('password'); $write = User::infosave($text); echo json_encode(array('result' => $write)); }