component( $preHtml = '', $postHtml = '' )

Loads the component with HTML before and after the component. This function is the equivalent of:

<?php echo $preHtml; ?>
 
<jdoc:include type="component" />
 
<?php echo $postHtml; ?>
  • string $preHtml: (optional) A string that gets added to the markup before the component is loaded. This can be any HTML string.
  • string $postHtml: (optional) A string that gets added to the markup after the component is loaded. This can be any HTML string.

Example:

<?php component('<div id="component">', '</div>'); ?>
Last modified on Wednesday, 31 March 2010 22:29

Add comment