API16

JDocumentRendererComponent/render: Difference between revisions

From Joomla! Documentation

m removing red link to edit, no existant pages
m preparing for archive only
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
Renders a component script and returns the results as a string
Renders a component script and returns the results as a string


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


<! removed transcluded page call, red link never existed >
<! removed transcluded page call, red link never existed >
Line 46: Line 44:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
<! removed transcluded page call, red link never existed >
<! removed transcluded page call, red link never existed >


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=render
  category=render
  category=JDocumentRendererComponent
  category=JDocumentRendererComponent
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 01:33, 25 March 2017

Description

Renders a component script and returns the results as a string


<! removed transcluded page call, red link never existed >

Syntax

render($component=null, $params=array(), $content=null)
Parameter Name Default Value Description
$component null $component The name of the component to render
$params array() $params Associative array of values
$content null

Returns

string The output of the script

Defined in

libraries/joomla/document/html/renderer/component.php

Importing

jimport( 'joomla.document.html.renderer.component' );

Source Body

public function render($component = null, $params = array(), $content = null)
{
        return $content;
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples