Re: Other directories and Smarty
| From: | Monte Ohrt | Date: | Wed, 21 Feb 2001 23:22:38 +0000 |
| Subject: | Re: Other directories and Smarty | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-183@lists.php.net to get a copy of this message | ||
I see the issue, this can definately be accomodated. I'll give this some
more thought and come back to it tomorrow. Its been a long day :-)
Adrian Teasdale wrote:
>
> Hi everyone :)
>
> I saw a message on here about including templates from other directories and
> I was wondering if there is a solution yet as we are running into the same
> problem.
> This is our problem:
>
> 1. Within out applications we need to have quite a few template directories.
> This is so that we can share common templates with other templates
>
> 2. I would like to be able to share these tempaltes, via an include
> statement, but it will not work as I cannot point Smarty to use another
> template dir
>
> We do have a workaround at the moment, but this is what it is - a
> workaround - and I would like to see if something can be added into Smarty
> to help with this.
> Our current workaround is to include the compiled template via embedded PHP
> code, which is not good. For example:
>
> {literal}<?php include '../shared_templates/template.tpl.php' ?>{/literal}
> Any help would be GREATLY appreciated
>
> All the best to everyone. Smarty is excellent!
>
> Ade
>
> --- i n o v i c a . c o m ------------------------
> e: inspireme@inovica.com
> w: http://www.inovica.com
>
> Web Apps, virtual communities and vertical portals
> Hosting and dedicated servers just around the corner
> Contact us for low-cost domain name registration
> ----------------------------------------------------
>
> ---
> 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/