JDocumentRendererHead/render: Difference between revisions
From Joomla! Documentation
m removing red link to edit, no existant pages |
m preparing for archive only |
||
| Line 59: | Line 59: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=render | category=render | ||
category=JDocumentRendererHead | category=JDocumentRendererHead | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 00:32, 25 March 2017
Description
Renders the document head and returns the results as a string
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
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
string The output of the script
Defined in
libraries/joomla/document/html/renderer/head.php
Importing
jimport( 'joomla.document.html.renderer.head' );
Source Body
function render( $head = null, $params = array(), $content = null )
{
ob_start();
echo $this->fetchHead($this->_doc);
$contents = ob_get_contents();
ob_end_clean();
return $contents;
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
Code Examples