public function saveRecurrentexpenseincomeNameAction() { $return = ''; $id = (int) $this->getRequest()->getParam('id'); $newFileName = (string) $this->getRequest()->getParam('filename'); $newFileExt = (string) $this->getRequest()->getParam('ext'); if ($id) { $post = $this->getRequest()->getPost(); $model = new Default_Model_RecurrentExpenses(); $model->find($id); $model->setName($post['update_value']); if ($model->save()) { $return = $post['update_value']; } else { $return = "Error modifying description"; } } echo $return; }