function deleteimg() { $id = JRequest::getVar('id', 0); //$id = JRequest::getVar( 'cid', array(0), '', 'array' ); $propertiesView = new JeaViewProperties(); $propertiesView->getDeleteImage($id); // $this->setRedirect('index.php?option=com_jea&controller=properties&cat=selling'); $this->setRedirect($this->_controllerUrl . '&task=edit&id=' . $id); }