API15

API15:JDocumentRendererHead/render

From Joomla! Documentation

Revision as of 22:18, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Renders the document head and returns the results as a string <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JDocumentRendererHead...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Renders the document head and returns the results as a string

[Edit Descripton]

Template:Description:JDocumentRendererHead/render

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;
}

[Edit See Also] Template:SeeAlso:JDocumentRendererHead/render

Examples

<CodeExamplesForm />