From fed6712916229ac290fd4ce81c11e6f7f0deb827 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Tue, 1 Jul 2003 03:43:09 +0000 Subject: [PATCH] Updated ROADMAPs. --- ROADMAP | 21 ++++++++++++++++++++ examples/index.php | 48 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 ROADMAP create mode 100644 examples/index.php diff --git a/ROADMAP b/ROADMAP new file mode 100644 index 0000000..801d858 --- /dev/null +++ b/ROADMAP @@ -0,0 +1,21 @@ +$Id$ + + +Version 0.12 +============ + + - Look if using $_SERVER['PATH_INFO'] in Link is viable. + + +Version 0.13 +============ + + - Start using config file for default widgets attributes. + +... + +Version 0.x +============ + - Make a way to put all classes in a package together in a single file to + avoid overhead in require_once calls (to be reviewed). + diff --git a/examples/index.php b/examples/index.php new file mode 100644 index 0000000..c38ac9c --- /dev/null +++ b/examples/index.php @@ -0,0 +1,48 @@ + | +// +--------------------------------------------------------------------+ +// +// $Id$ +// + +$tmp = ini_get('include_path'); +ini_set('include_path', "..:$tmp"); +unset($tmp); +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); + +?> -- 2.43.0