Posted by M on 06/28/05 21:54
Hi Folks,
I am trying to install Smarty using PHP 5 on a Windows XP PC using IIS
v6
The following PHP File:
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>Title here!</title>
</head>
<body>
<?php
require('Smarty.class.php');
$smarty = new Smarty;
$smarty->template_dir = '/Program
Files/PhpIncludes/Smarty-2.6.9/demo/templates';
$smarty->compile_dir = '/Program
Files/PhpIncludes/Smarty-2.6.9/demo/templates_c';
$smarty->config_dir = '/Program
Files/PhpIncludes/Smarty-2.6.9/demo/configs/';
$smarty->cache_dir = '/Program Files/PhpIncludes/Smarty-2.6.9/demo/cache/';
$smarty->assign('name','Ned');
$smarty->display('index2.tpl');
?>
</body>
</html>
Gives the following error:
Warning: Smarty::fetch(/Program
Files/PhpIncludes/Smarty-2.6.9/demo/templates_c\%%93^934^9348F8B7%%index2.tpl.php)
[function.fetch]: failed to open stream: No such file or directory in
C:\Program Files\PhpIncludes\Smarty-2.6.9\libs\Smarty.class.php on line 1251
Warning: Smarty::fetch() [function.include]: Failed opening '/Program
Files/PhpIncludes/Smarty-2.6.9/demo/templates_c\%%93^934^9348F8B7%%index2.tpl.php'
for inclusion (include_path='.;C:\Program
Files\PhpIncludes\Smarty-2.6.9\libs') in C:\Program
Files\PhpIncludes\Smarty-2.6.9\libs\Smarty.class.php on line 1251
Any Ideas please?
Thanks,
Martin
Navigation:
[Reply to this message]
|