====== render ======
{#JAPI Joomla.Framework Document JDocumentRendererMessage::render #}
Renders the message stack and returns the results as a string.
Retrieves the message queue from the $mainframe object and renders them in HTML.
The method returns the rendered HTML code.
===== Syntax =====
string render ( **$name**, **$params**, **$content** )
| **$name** | string | is an unused string. |
| **$params** | array | is an unused associative array of parameter values. |
| **$content** | string | is an unused string. |
===== Examples =====
global $mainframe;
if ($task == 'displaymessage') {
$document =& JFactory::getDocument();
jimport( 'joomla.document.renderer' );
jimport( 'joomla.document.html.renderer.message' );
$renderer = new JDocumentRendererMessage( $document );
echo $renderer->render();
} else {
$mainframe->redirect( 'index.php?option=com_poll&task=displaymessage', 'This is the message to display!' );
}
might produce:
- Message
-
- This is the message to display!
----
~~DISCUSSION~~