10-10-2007, 11:04 PM
|
#1 (permalink)
|
|
The Acquainted
Join Date: Oct 2007
Location: florida
Posts: 110
Thanks: 36
|
Trouble with Smarty
Note: I removed the dir names from the file paths below. They are replaced with '--'
I keep getting this error when I try to load my index.php file...
Quote:
|
Warning: Smarty error: unable to read resource: "news.tpl" in /--/--/lib/php/smarty/Smarty.class.php on line 1095
|
I'm not sure why I get this error. Everything has the right chmod perms, all the file paths are correct, I haven't touched any of the coding in the class file.
The code for my index.php file is as follows:
PHP Code:
<?php
require('/--/--/lib/php/smarty/Smarty.class.php');
$smarty = new Smarty();
$smarty->template_dir = '--/--/inc/smarty/templates'; $smarty->compile_dir = '--/--/inc/smarty/templates_c'; $smarty->cache_dir = '--/--/inc/smarty/cache'; $smarty->config_dir = '--/--/inc/smarty/configs';
$smarty->display('news.tpl');
?>
yea, I'm a newb
|
|
|
|