public function deleteAction() { // check acl if (!Knowledgeroot_Acl::iAmAllowed('content_' . $this->_getParam('id'), 'delete')) { $this->_redirect('page/' . $this->_getParam('content_page')); } $content = new Knowledgeroot_Content($this->_getParam('id')); $parent = $content->getParent(); $content->delete(); $this->_redirect('page/' . $parent); }