Installation trouble Win32 / Apache 2.0.35 / PHP 4.1.2 / Smarty 2 .0.1
| From: | Onno de Graaff | Date: | Tue, 16 Apr 2002 15:28:39 +0000 |
| Subject: | Installation trouble Win32 / Apache 2.0.35 / PHP 4.1.2 / Smarty 2 .0.1 | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-3769@lists.php.net to get a copy of this message | ||
Trying to install Smarty 2.0.1 on Win32 / Apache 2.0.35 / PHP 4.1.2 without
success.
Any help is appreciated! =)
Installation + basic test
* Apache = OK
* Apache + PHP = OK
* Apache + PHP + Smarty = troubles
The example doesn't work after installation.
<?php
require("Smarty-2.0.1\Smarty.class.php"); // Added subdir to path
$smarty = new Smarty;
$smarty->assign("Name","Ned");
$smarty->display("index.tpl");
?>
The error is
Smarty error: unable to read template resource: "index.tpl" in
d:\webserver\includes\Smarty-2.0.1\Smarty.class.php on line 466
The webserver structure is like this...
d:\webserver\htdocs
d:\webserver\includes
and among configuration in [php.ini]
include_path = ".;d:/webserver/includes/"
and among configuration in smarty public vars
var $template_dir = 'templates';
Tracking the error in Smarty.class.php I get to the function
_fetch_template_info() and there the variables $resource_type and
$resource_name are undefined when calling the function _parse_file_path().