Re: [phplib] templates in a db From: Spruce Weber (sprucely <email protected>)
Date: 03/22/01

That's easy. All that set_file() does is load the contents of a file into
the specified variable. If it's not a file you're loading then use
set_var()...

$tpl->set_var("page", $q->f("Template"));

----Original Message Follows----
From: "Daniel Bondurant" <bondu <email protected>>
To: <phplib <email protected>>
Subject: [phplib] templates in a db
Date: Wed, 21 Mar 2001 12:14:41 -0800

is there anyway use the template class to use a template from a
database?

$tpl = new Template("","remove");
$tpl->set_file("page" => $q->f("Template"));
this doesn't seem to work for me.

Is there anyway to do this?

thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>