Re: Smarty progress report
| From: | Monte Ohrt | Date: | Thu, 12 Apr 2001 19:33:02 +0000 |
| Subject: | Re: Smarty progress report | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-540@lists.php.net to get a copy of this message | ||
Ok as of now, these two syntax do the same thing:
{include file="footer.tpl"}
{include file="file:footer.tpl"}
They will both be relative to $template_dir. If the resource begins with
"file:/", it will be considered an absolute path.
Monte Ohrt wrote:
>
> 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
>
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/