references:joomla.framework:document:jdocumentrenderermodule-renderrender
Renders a module script and returns the results as a string. If the module is cachable and and caching is enabled, the output is retrieved from the caching layer. Otherwise, the JModuleHelper::renderModule() method is used to render the module. The method returns the rendered module. Syntaxstring render ( $module, $params, $content )
ExamplesExample $document =& JFactory::getDocument(); jimport( 'joomla.document.renderer' ); jimport( 'joomla.document.html.renderer.module' ); $renderer = new JDocumentRendererModule( $document ); echo $renderer->render( 'online' ); might produce: Result 1 <img src="images/users.png" align="middle" alt="Users Online" /> Discussion |


