public function index() { $this->modelComment = $this->loadModel('CommentsEvent'); $allComments = $this->modelComment->getAllCommentsEvent(); $this->getView()->render('admin/comments', array('allComments' => $allComments)); }
public function testGetAllEvent() { $this->modelEvent = new CommentsEventModel(); $state = $this->modelEvent->getAllCommentsEvent(); $this->assertNotEmpty($state); }