Re: Smarty progress report

From: Date: Tue, 10 Apr 2001 19:30:29 +0000
Subject: Re: Smarty progress report
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-517@lists.php.net to get a copy of this message
> {* including from any directory *} > {include file="file://export/httpd/templates/shared/banner.tpl"} > {include file="file://absolute/path/to/template.tpl"} > > The first two examples pull templates from the $template_dir directory, > which is the way Smarty works now. The second two examples include > templates from arbitrary directories, using the full system path name. Relative pathnames? Aren't they supported somehow? > Either something like that, or a simpler mapping, so in the template you > might have {include file="mydb://footer.tpl"}, and in smarty you would > register "mydb" as a database resource. $smarty->register_db_source(...); would be good, and then we can use {include file="mydb://footer.tpl"} Anyway, how footer.tpl can be represented in a database table? Goba ........................................................... . . . . . Editor of the Hungarian PHP manual, Admin of the Hungarian PHP mirror

« previous php.smarty.general (#517) next »