Smarty not working under Windows XP and IIS 5.0
| From: | Vladimir Kravtsov | Date: | Fri, 03 Jan 2003 00:30:57 +0000 |
| Subject: | Smarty not working under Windows XP and IIS 5.0 | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6993@lists.php.net to get a copy of this message | ||
This is test.php
<?php
define('SMARTY_DIR','c:\inetpub\wwwroot\newphp\test\');
require(SMARTY_DIR.'Smarty.class.php');
$smarty = new Smarty;
$smarty->template_dir = "c:\inetpub\wwwroot\newphp\test\templates\";
$smarty->compile_dir = "c:\inetpub\wwwroot\newphp\test\templates_c\";
$smarty->assign('name','Ned');
$smarty->display('index.tpl');
?>
I'm not sure if that's how it's supposed to be done.
My index.tpl is just Hello, {$name}!.
When I run test.php, the page is blank.
I am running the latest version of Smarty.
Thank you in advance for your help.
PS: I am also running the latest verision of PHP.