public function deleteimagesAction() { $this->_helper->viewRenderer->setNoRender(); if ($this->authIdentity->userid) { $deleteimage = new Application_Model_Images($this->registry['DB']); $imageid = $this->getRequest()->getParam('imageid'); $deleteimage->deleteImages($imageid); echo json_encode(array('status' => 'success')); } else { echo json_encode(array('status' => 'error')); } }