JDocumentRendererHead/render
From Joomla! Documentation
< API15:JDocumentRendererHead
The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Description[edit]
Renders the document head and returns the results as a string
Template:Description:JDocumentRendererHead/render
Syntax[edit]
render($head=null, $params=array(), $content=null)
Parameter Name | Default Value | Description |
---|---|---|
$head | null | $name (unused) |
$params | array() | $params Associative array of values |
$content | null |
Returns[edit]
string The output of the script
Defined in[edit]
libraries/joomla/document/html/renderer/head.php
Importing[edit]
jimport( 'joomla.document.html.renderer.head' );
Source Body[edit]
function render( $head = null, $params = array(), $content = null )
{
ob_start();
echo $this->fetchHead($this->_doc);
$contents = ob_get_contents();
ob_end_clean();
return $contents;
}
[Edit See Also] Template:SeeAlso:JDocumentRendererHead/render
Examples[edit]
<CodeExamplesForm />