Patches item #613505, was opened at 2002-09-23 19:27
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=403613&aid=613505&group_id=31885
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Daniel Ward (fastcat)
Assigned to: Nobody/Anonymous (nobody)
Summary: Template: use include path for set_file
Initial Comment:
Allows the use of the include path rather than absolute
or relative filenames in Template::load_file().
Use:
Add the $use_inc_path class variable and replace
Template(), set_file(), and load_file() methods with those
in the attached template.inc.patch file below.
Be sure to add your template directory to your include
path.
Example of use after patch:
$pg = new Template("USE_INC_PATH");
$pg->set_file("filename.tpl");
filename.tpl only needs to be in your include path now
not in current working directory. The same code will
work in any directory this way.
----------------------------------------------------------------------
>Comment By: Daniel Ward (fastcat)
Date: 2002-09-23 19:49
Message:
Logged In: YES
user_id=598737
Oops! The new class variable, $use_inc_path, should not be
set to anything in its declaration. It is set in the new
constructor. So it should read
var $use_inc_path;
rather than
var $use_inc_path = ".";
Thats what I get for using copy and paste too much. :o)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=403613&aid=613505&group_id=31885
|