Re: include path
| From: | Tom Hensel | Date: | Mon, 28 May 2001 04:28:50 +0000 |
| Subject: | Re: include path | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-830@lists.php.net to get a copy of this message | ||
hi,
> Thanks again. But I need to know how to apply this to Smarty's template
> file.
---cut---
// for testing
define("TEMPLATE_PATH","../templates/html/");
$templateFile = "test.ihtml";
// compose filename
$resource = "file:" . realpath(TEMPLATE_PATH . $templateFile);
// display template
$Smarty->display($resource);
---cut---
if this is not what you want, please specify your question.
bye,
TOM