Пример #1
0
 public function saveRecurrentexpenseincomePriceAction()
 {
     $return = '';
     $id = (int) $this->getRequest()->getParam('id');
     if ($id) {
         $post = $this->getRequest()->getPost();
         $model = new Default_Model_RecurrentExpenses();
         $model->find($id);
         $model->setPrice($post['update_value']);
         if ($model->save()) {
             $return = $post['update_value'];
         } else {
             $return = "Error modifying value";
         }
     }
     echo number_format($return, 2);
 }