API15

JDocumentRendererHead/render: Difference between revisions

From Joomla! Documentation

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...
 
m removing red link to edit, no existant pages
Line 3: Line 3:


<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JDocumentRendererHead/render|Edit Descripton]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>


{{Description:JDocumentRendererHead/render}}
<! removed transcluded page call, red link never existed >


===Syntax===
===Syntax===
Line 54: Line 54:


<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JDocumentRendererHead/render|Edit See Also]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>
{{SeeAlso:JDocumentRendererHead/render}}
<! removed transcluded page call, red link never existed >


===Examples===
===Examples===
Line 69: Line 69:
  format= ,,,
  format= ,,,
</dpl>
</dpl>
[[Category:Archived pages API15]]

Revision as of 16:45, 12 May 2013

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

<CodeExamplesForm />