On 2009-04-23 03:17, Jason La wrote:
Hi,

Is possible to store templates in a database instead of the file
system, and how would I go about doing that?
Just store template code as a string and it's ID in the database.
Then read string from the database and pass this string to PHPTAL object using setTemplate method.

$xhtml_string = $db->getTemplate($template_id);
$phptal->setTemplate($xhtml_string);

--
regards
takeshin

_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to