could someone please tell me how to call patTemplate in Joomla! 1.5?
Before I did it like this:
Code: Select all
function &createTemplate() {
global $option, $mosConfig_absolute_path;
require_once( $mosConfig_absolute_path . '/includes/patTemplate/patTemplate.php' );
}
$tmpl =& patFactory::createTemplate( $option, true, false );
$tmpl->setRoot( dirname( __FILE__ ) . '/tmpl' );
return $tmpl;
}
function showAbout() {
// import the body of the page
$tmpl =& showAbout::createTemplate();
$tmpl->setAttribute( 'body', 'src', 'about.html' );
$tmpl->displayParsedTemplate( 'form' );
}
A small code snip would help, thanks.
regards
Antonio Cambule