Re: Smarty progress report

From: Date: Thu, 12 Apr 2001 19:05:19 +0000
Subject: Re: Smarty progress report
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-539@lists.php.net to get a copy of this message
Monte Ohrt wrote: > > 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? > > Here is the correct syntax (get rid of the double slash in the above example): {include file="file:/export/httpd/templates/shared/banner.tpl"} Now for relative path names, this syntax could work: {include file="file:shared/banner.tpl"} But what is this going to be relative to? the $template_dir? You can already do that with the backword compatible syntax of: {include file="shared/banner.tpl"} Monte

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