public function showMessages()
    {
        $messageMapper = ($this->container->dataMapper)('MessageMapper');
        $messages = $messageMapper->findAllInDateOrder();

        return $this->render('messages.html', ['messages' => $messages]);
    }
public function showMessages()
    {
        $messageMapper = ($this->container->dataMapper)('MessageMapper');
        $messages = $messageMapper->findAllInDateOrder();

        return $this->render('messages.html', ['messages' => $messages]);
    }
public function showMessages ( ) { $ messageMapper = ( $ this -> container -> dataMapper ) ( 'MessageMapper' ) ; $ messages = $ messageMapper -> findAllInDateOrder ( ) ; return $ this -> render ( 'messages.html' , [ 'messages' => $ messages ] ) ; }
Show All Messages

Displays all messages in descending date order
Show All Messages