src/Towel/Controller/BaseController.php
public function setMessage($type, $content)
    {
        $message = new \stdClass;
        $message->mt = $type;
        $message->content = $content;
        $messages = $this->session()->get('messages', array());
        $messages[] = $message;
        $this->session()->set('messages', $messages);
    }
public function setMessage($type, $content)
    {
        $message = new \stdClass;
        $message->mt = $type;
        $message->content = $content;
        $messages = $this->session()->get('messages', array());
        $messages[] = $message;
        $this->session()->set('messages', $messages);
    }
public function setMessage ( $ type , $ content ) { $ message = new \ stdClass ; $ message -> mt = $ type ; $ message -> content = $ content ; $ messages = $ this -> session ( ) -> get ( 'messages' , array ( ) ) ; $ messages [ ] = $ message ; $ this -> session ( ) -> set ( 'messages' , $ messages ) ; }
Sets a user message to present after reload or redirect.

@param $type
@param $content
Sets a user message to present after reload or redirect .