src/Mainio/C5/ControllerExtensions/Controller/Extension/FlashMessagesExtension.php
protected function assignFlash($key, $viewKey)
    {
        if (count($msg = $this->getFlash($key)) > 0) {
            $this->set($viewKey, implode(", ", $msg));
        }
    }
protected function assignFlash($key, $viewKey)
    {
        if (count($msg = $this->getFlash($key)) > 0) {
            $this->set($viewKey, implode(", ", $msg));
        }
    }
protected function assignFlash ( $ key , $ viewKey ) { if ( count ( $ msg = $ this -> getFlash ( $ key ) ) > 0 ) { $ this -> set ( $ viewKey , implode ( ", " , $ msg ) ) ; } }
Sets the flash message from the flashbag to a variable available in the
view.

@param $key string
@param $viewKey string
Sets the flash message from the flashbag to a variable available in the view .