X-Git-Url: https://git.llucax.com/software/bife/bife.git/blobdiff_plain/67da6263a9ae094d8c24e778c39426f7c2df782e..992b81c711d22bcfd5b3572e660cb958a8b1f7f9:/examples/index.php diff --git a/examples/index.php b/examples/index.php index c38ac9c..fc2b199 100644 --- a/examples/index.php +++ b/examples/index.php @@ -26,23 +26,10 @@ // $Id$ // -$tmp = ini_get('include_path'); -ini_set('include_path', "..:$tmp"); -unset($tmp); +ini_set('include_path', '../src:'.ini_get('include_path')); umask('002'); -require_once 'HTML/Template/HIT.php'; -require_once 'BIFE/Parser.php'; -require_once 'BIFE/Translate.php'; - -$file = isset($_REQUEST['BIFE']) ? $_REQUEST['BIFE'] : 'index.xbf'; -#$file = isset($_SERVER['PATH_INFO']) ? ".{$_SERVER['PATH_INFO']}" : 'index.xbf'; - -$template =& new HTML_Template_HIT('templates'); - -$parser =& new BIFE_Parser('BIFE_Translate'); -$page =& $parser->parseFile($file); -$parser->__destruct(); -echo $page->render($template); - ?> + +BIFE is an abstract framework, to see a simple implementation download +BIFE_Base package.