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

        $all = $comments->findAll();

        $this->views->add('comment/comments', [
            'comments' => $all,
        ]);
    }
public function viewAction()
    {
        $comments = new \Phpmvc\Comment\CommentsInSession();
        $comments->setDI($this->di);

        $all = $comments->findAll();

        $this->views->add('comment/comments', [
            'comments' => $all,
        ]);
    }
public function viewAction ( ) { $ comments = new \ Phpmvc \ Comment \ CommentsInSession ( ) ; $ comments -> setDI ( $ this -> di ) ; $ all = $ comments -> findAll ( ) ; $ this -> views -> add ( 'comment/comments' , [ 'comments' => $ all , ] ) ; }
View all comments.

@return void
View all comments .