X-Git-Url: https://git.llucax.com/software/bife/bife-all.git/blobdiff_plain/afeefb526fa1db0797362edb2227739883a0b617..3658b126d4873c96dd3b08af6619795790e23ac2:/examples/index.php?ds=sidebyside diff --git a/examples/index.php b/examples/index.php index 4d7651a..33b14e1 100644 --- a/examples/index.php +++ b/examples/index.php @@ -35,13 +35,14 @@ require_once 'BIFE/Parser.php'; require_once 'BIFE/Copy.php'; require_once 'BIFE/Page.php'; require_once 'BIFE/Title.php'; +require_once 'BIFE/Link.php'; #require_once 'BIFE/Album.php'; #require_once 'BIFE.php'; -$file = 'simple.xbf'; +$file = isset($_REQUEST['BIFE']) ? $_REQUEST['BIFE'] : 'index.xbf'; -$template =& new HTML_Template_Sigma('templates'); -$template->setErrorHandling(PEAR_ERROR_PRINT); +$template =& new HTML_Template_Sigma('templates', 'compiled_templates'); +$template->setErrorHandling(PEAR_ERROR_TRIGGER, E_USER_ERROR); $parser =& new BIFE_Parser('BIFE_Copy'); $page =& $parser->parseFile($file);