public function getTasaRate($id)
 {
     try {
         $table = $this->getDbTable();
         $select = $table->select();
         $select->from($table, array('id', 'rate'));
         $select->where('id = ?', $id);
         $resultSet = $table->fetchAll($select);
         $entries = array();
         $entry = new Gyuser_Model_Tasas();
         foreach ($resultSet as $row) {
             $entry = new Gyuser_Model_Tasas();
             $entry->setId($row->id);
             $entry->setRate($row->rate);
             $entries[] = $entry;
         }
         return $entry;
     } catch (Exception $e) {
         return $e;
     }
 }
 public function tasasformajaxAction()
 {
     try {
         $request = $this->getRequest();
         if ($this->getRequest()->isPost()) {
             $mapper = new Gyuser_Model_TasasDataMapper();
             $Obj = new Gyuser_Model_Tasas();
             $Obj->setRate($request->rate);
             if ($request->id) {
                 $Obj->setId($request->id);
             }
             $this->_helper->layout->disableLayout();
             $this->_helper->viewRenderer->setNoRender();
             $id = $mapper->save($Obj);
             if ($id) {
                 echo $id;
             } else {
                 echo "f";
             }
         }
     } catch (Exception $e) {
         echo $e;
     }
 }