Back to ComponentRenderer class

Method render

public string
render
(mixed $component = null, mixed $params = array(), mixed $content = null)
Renders a component script and returns the results as a string
Parameters
  • string $component The name of the component to render
  • array $params Associative array of values
  • string $content Content script
Returns
  • string The output of the script
Since
  • 3.5

Method render - Source code

/**
 * Renders a component script and returns the results as a string
 *
 * @param   string  $component  The name of the component to render
 * @param   array   $params     Associative array of values
 * @param   string  $content    Content script
 *
 * @return  string  The output of the script
 *
 * @since   3.5
 */
public function render($component = null, $params = array(), $content = null)
{
    return $content;
}