protected function render($templateName, array $placeholderValuePairs)
    {
        $resultString = Messages::get($templateName);
        foreach ($placeholderValuePairs as $placeholder => $value) {
            $resultString = str_replace('{{ '.$placeholder.' }}', $value, $resultString);
        }

        return $resultString;
    }
protected function render($templateName, array $placeholderValuePairs)
    {
        $resultString = Messages::get($templateName);
        foreach ($placeholderValuePairs as $placeholder => $value) {
            $resultString = str_replace('{{ '.$placeholder.' }}', $value, $resultString);
        }

        return $resultString;
    }
protected function render ( $ templateName , array $ placeholderValuePairs ) { $ resultString = Messages :: get ( $ templateName ) ; foreach ( $ placeholderValuePairs as $ placeholder => $ value ) { $ resultString = str_replace ( '{{ ' . $ placeholder . ' }}' , $ value , $ resultString ) ; } return $ resultString ; }
Render a string from the Messages library.

@param string $templateName          Name of template
@param array  $placeholderValuePairs Associative array of substitute values

@return string
Render a string from the Messages library .