Re: Smarty progress report

From: Date: Thu, 12 Apr 2001 18:54:00 +0000
Subject: Re: Smarty progress report
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-538@lists.php.net to get a copy of this message
Hojtsy Gabor wrote: > > > {* 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? > At the very least it will need a filename, the template code and a timestamp. > Goba > ........................................................... . . . . . > Editor of the Hungarian PHP manual, Admin of the Hungarian PHP mirror -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

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