public function editargaleriaAction()
 {
     $id = $this->_request->getParam('id');
     require_once APPLICATION_PATH . '/modules/admin/forms/Galerias.php';
     $this->view->form = new admin_Form_Galerias();
     $galeriasModel = new Application_Model_Galerias();
     if ($this->_request->isPost()) {
         $this->view->form->setDefaults($this->_request->getPost());
         $data = $this->view->form->getValues();
         if ($this->view->form->isValid($data)) {
             $galeriasModel->update($data, 'id_galeria = ' . $id);
             return $this->_helper->redirector('index');
         }
     }
     $galerias = $galeriasModel->find($id)->current();
     $this->view->form->setDefaults($galerias->toArray());
 }