protected function addStatusMessage($type, $messages)
    {
        if (!is_array($messages)) {
            $messages = array($messages);
        }
        $this->addData('status', array($type => $messages));
    }
protected function addStatusMessage($type, $messages)
    {
        if (!is_array($messages)) {
            $messages = array($messages);
        }
        $this->addData('status', array($type => $messages));
    }
protected function addStatusMessage ( $ type , $ messages ) { if ( ! is_array ( $ messages ) ) { $ messages = array ( $ messages ) ; } $ this -> addData ( 'status' , array ( $ type => $ messages ) ) ; }
Adds one or more status messages to the response data.

@param string $messages
Adds one or more status messages to the response data .