Date: 05/11/01
- Next message: Stephen Woodbridge: "[phplib] phplib Template work being done for PHPWidgets!"
- Previous message: nathan r. hruby: "Re: [phplib] replacement variables"
- Next in thread: Karsten Dambekalns: "Re: [phplib] Template: set_file, but not showing up..."
- Reply: Karsten Dambekalns: "Re: [phplib] Template: set_file, but not showing up..."
- Maybe reply: Layne Weathers: "Re: [phplib] Template: set_file, but not showing up..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi List!
I am using template.inc (tried IT[X] but found it unusable :-( ) and
have a template where I define about 10 variables. Three of them are
to be replaced by the content of other template files.
One of the files contains some more variables, and that works
fine. The two other files do not contain any variables, and it seems
as if they are ignored....
I set the thing up as follows:
$tpl = new template();
$tpl->set_file(array(
"PAGE" => "../tpl/page-dynamic.tpl",
"HEAD" => "tpl/head.tpl",
"CONTENT" => "tpl/content.tpl",
"FOOT" => "tpl/foot.tpl")
);
PAGE is the main template, CONTENT shows up in the output (and the
variables therein are processed okay), but HEAD and FOOT are _not_ in
the resulting output...
All files are found, no errors are generated, having $debug=true gave
me no further insight. And no, the files are not empty :-)
Is this because of the (from the set_file documentation) "the contents
of the file are being loaded when needed (as late as possible) and set
as the value of that variable."? But there is no touch_block or
touch_var...
Any ideas on the issue? Please :-)
Regards,
Karsten
-- Why do we have to hide from the police, daddy? Because we use emacs, son. They use vi. ----------------------------- mailto:k.dambekalns <email protected> wł: http://www.k-fish.de/ gpg: http://www.k-fish.de/mykeys.gpg--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: Stephen Woodbridge: "[phplib] phplib Template work being done for PHPWidgets!"
- Previous message: nathan r. hruby: "Re: [phplib] replacement variables"
- Next in thread: Karsten Dambekalns: "Re: [phplib] Template: set_file, but not showing up..."
- Reply: Karsten Dambekalns: "Re: [phplib] Template: set_file, but not showing up..."
- Maybe reply: Layne Weathers: "Re: [phplib] Template: set_file, but not showing up..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

