public function removeAllAction()
    {
        $isPosted = $this->request->getPost('doRemoveAll');
        
        if (!$isPosted) {
            $this->response->redirect($this->request->getPost('redirect'));
        }

        $comments = new \Phpmvc\Comment\CommentsInSession();
        $comments->setDI($this->di);

        $comments->deleteAll();

        $this->response->redirect($this->request->getPost('redirect'));
    }
public function removeAllAction()
    {
        $isPosted = $this->request->getPost('doRemoveAll');
        
        if (!$isPosted) {
            $this->response->redirect($this->request->getPost('redirect'));
        }

        $comments = new \Phpmvc\Comment\CommentsInSession();
        $comments->setDI($this->di);

        $comments->deleteAll();

        $this->response->redirect($this->request->getPost('redirect'));
    }
public function removeAllAction ( ) { $ isPosted = $ this -> request -> getPost ( 'doRemoveAll' ) ; if ( ! $ isPosted ) { $ this -> response -> redirect ( $ this -> request -> getPost ( 'redirect' ) ) ; } $ comments = new \ Phpmvc \ Comment \ CommentsInSession ( ) ; $ comments -> setDI ( $ this -> di ) ; $ comments -> deleteAll ( ) ; $ this -> response -> redirect ( $ this -> request -> getPost ( 'redirect' ) ) ; }
Remove all comments.

@return void
Remove all comments .