Re: [SMARTY] smarty and dreamweaver
| From: | Ferdinand Beyer | Date: | Mon, 24 Jun 2002 16:38:20 +0000 |
| Subject: | Re: [SMARTY] smarty and dreamweaver | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4997@lists.php.net to get a copy of this message | ||
On 24 Jun 2002 at 12:12, Blue Presley wrote:
> okay, changing the .TPL extension to .HTML would work, but where in the
> Smarty files is that config option? I checked the config options in
> Smarty.class.php, but couldn't find it. Which file/what line number?
There is no such config option. Smarty does not care about file
extensions. Simply use
$smarty->display('my_template.html');
{include file="includefile.html"}
etc.
You will always have to reference to your files by yourself (currently you
are coding display('xxx.tpl') and not display('xxx'), aren't you?) so you
can call them like you want -- even without any extension or if you are
really mad you could save your templates in *.exe files as well :-)
--
Ferdinand Beyer
<fbeyer@clickhand.de>