Re: [phplib] Template: set_file, but not showing up... From: Karsten Dambekalns (k.dambekalns <email protected>)
Date: 05/11/01

On Fri, May 11, 2001 at 05:26:17PM +0200, Karsten Dambekalns wrote:
> 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....
>
> [...]
>
> 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...

Answering myself: $tpl->loadfile() helped. It is declared as a private
function, so I probably do a Bad Thing (tm) using it, but hey - it
works!

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>