public function eliminarcursoajaxAction() { $curso = new Application_Model_Cursos(); if ($this->getRequest()->isXmlHttpRequest()) { $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(); $idcurso = $this->getRequest()->getParam('cur'); $curso->deleteCurso($idcurso); echo "1"; } }