hat mal kurz jemand den neuen Aufruf für das patTemplate in Joomla! 1.5?
Bisher hatte ich das so:
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' );
}
Ein Codeschnipsel würde helfen, danke.
EDIT: Vielen Dank.
Gruß
Antonio Cambule