module( $module, $preHtml='', $postHtml='', $params=array() )

Loads a single module.

  • string $module: The name of the module to be loaded.
  • string $preHtml: (Optional) A string that gets added to the markup before the module is loaded. This can be any HTML string.
  • string $postHtml: (Optional) A string that gets added to the markup after the module is loaded. This can be any HTML string.
  • array $params: An array of parameters passed to the module.

Example:

<?php module('search', '<div id="searchmodule">', '</div>'); ?>
Last modified on Wednesday, 31 March 2010 23:18

1 Comment

Add comment