Date: 05/09/01
- Next message: Rob Hardowa: "[phplib] Missing dollar signs after upgrade from php3 to php4"
- Previous message: Layne Weathers: "Re: [phplib] cookies and sessions"
- Next in thread: Alex Black: "Re: [phplib] parse template into $variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> perhaps I'm not seeing the wood for the trees, but is it
> possible in some
> way to parse a template file and then put the result into a
> PHP variable?
>
> I'm trying to use the PHPLIB templates to send e-mails.
Parse and finish your template and then get the variable.
$t = new Template;
$t->set_file('file', 'blah.tpl');
< do stuff here >
$t->parse('file', 'out');
$t->finish('out');
$email_body = $t->get_var('out');
Layne Weathers
Ifworld, Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Rob Hardowa: "[phplib] Missing dollar signs after upgrade from php3 to php4"
- Previous message: Layne Weathers: "Re: [phplib] cookies and sessions"
- Next in thread: Alex Black: "Re: [phplib] parse template into $variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

