blob: 8aa1057dc5840100c6fbcc979ac46f3e02d3f727 [file] [log] [blame]
<?php
require_once 'tutorial_autoload.php';
class customLazyTemplateConfiguration implements ezcBaseConfigurationInitializer
{
public static function configureObject( $cfg )
{
$cfg->templatePath = "/usr/share/templates";
$cfg->compilePath = "/tmp/compiled_templates";
$cfg->context = new ezcTemplateXhtmlContext();
}
}
ezcBaseInit::setCallback(
'ezcInitTemplateConfiguration',
'customLazyTemplateConfiguration'
);
$t = new ezcTemplate();
$t->process( "hello_world.ezt" );
?>