Newbie issue with Smarty
| From: | Rich Gray | Date: | Tue, 21 May 2002 14:54:48 +0000 |
| Subject: | Newbie issue with Smarty | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-4322@lists.php.net to get a copy of this message | ||
NT 4.0/PHP 4.2.1 CGI Mode
Smarty v2.1.1
Apache/1.3.22
I have just downloaded Smarty to play around with and am going through the
QUICKSTART instructions and I get this problem already...
Warning: Failed opening 'templates_c\117\1172603085\0.php' for inclusion
(include_path='d:/Program Files/Apache Group/Apache/htdocs') in d:\Program
Files\Apache Group\Apache\htdocs\test\smarty-2.1.1\Smarty.class.php on line
641
Here is the index.php file I am using...
<?php
define("SMARTY_DIR","d:/Program Files/Apache
Group/Apache/htdocs/test/smarty-2.1.1/");
require(SMARTY_DIR."Smarty.class.php");
$smarty = new Smarty;
$smarty->assign("Name","Ned");
$smarty->display("index.tpl");
?>
Line 641 of the class is this ...
include($_smarty_compile_path);
So if Smarty is dynamically creating the subdirectories when it compiles the
php code then how will php's include path get reset? Am I missing something
obvious - I'm sure I am!
TIA
Rich