X-Git-Url: https://git.llucax.com/software/bife/bife-all.git/blobdiff_plain/6b3b1dd0cad8c4342008f139922e1ed26924bf2a..93ebb6cfe68748103b065768c7cb530ebefc7543:/examples/index.php diff --git a/examples/index.php b/examples/index.php index 57a35af..4d7651a 100644 --- a/examples/index.php +++ b/examples/index.php @@ -30,12 +30,12 @@ $tmp = ini_get('include_path'); ini_set('include_path', "../src:$tmp"); unset($tmp); -require_once 'prepend.php'; require_once 'HTML/Template/Sigma.php'; require_once 'BIFE/Parser.php'; +require_once 'BIFE/Copy.php'; require_once 'BIFE/Page.php'; require_once 'BIFE/Title.php'; -require_once 'BIFE/Album.php'; +#require_once 'BIFE/Album.php'; #require_once 'BIFE.php'; $file = 'simple.xbf'; @@ -43,9 +43,9 @@ $file = 'simple.xbf'; $template =& new HTML_Template_Sigma('templates'); $template->setErrorHandling(PEAR_ERROR_PRINT); -$parser =& new BIFE_Parser($template); -$parser->parseFile($file); -echo $parser->getOutput(); +$parser =& new BIFE_Parser('BIFE_Copy'); +$page =& $parser->parseFile($file); $parser->__destruct(); +echo $page->render($template); ?>