public function deleteAction() { $id = $this->_request->getParam('id', 0); if ($id > 0) { $post = new Application_Model_DbTable_Posts(); $post->deletePost($id); } $this->_redirect('/post/index'); }