Other directories and Smarty

From: Date: Wed, 21 Feb 2001 22:00:29 +0000
Subject: Other directories and Smarty
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-181@lists.php.net to get a copy of this message
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 ----------------------------------------------------

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