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