references:joomla.framework:document:jdocumentrenderer-renderrender
Renders a script and returns the results as a string. This is an abstract method and must be implemented in the child class. Syntaxstring render ( $name, $params, $content, $array )
ExamplesExample $document =& JFactory::getDocument(); jimport( 'joomla.document.renderer' ); jimport( 'joomla.document.html.renderer.head' ); $renderer = new JDocumentRendererHead( $document ); //echo $renderer->getContentType(); echo $renderer->render(); might produce: Result <title>Joomla! 1.5 Testing - Administration</title> <meta name="description" content="Joomla! - the dynamic portal engine and content management system" /> <meta name="generator" content="Joomla! 1.5 - Open Source Content Management" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="robots" content="index, follow" /> <meta name="keywords" content="joomla, Joomla" /> <script type="text/javascript" src="../includes/js/mootools-uncompressed.js"></script> <script type="text/javascript" src="../includes/js/joomla.javascript.js"></script> Discussion |


