Page 1 of 1

smarty templating ERROR?

Posted: Sun Oct 25, 2009 6:20 pm
by psychotomus
I got my smarty files in

root/libs/

i got my files in

root/admin/index.php

my template for the admin/main.tpl is in

root/templates/admin/

i am getting the following error:
Warning: Smarty error: unable to read resource: "main.tpl" in /home/tactical/public_html/newgame/libs/Smarty.class.php on line 1093


with this code

Code: Select all

 
<?php
 
require '../libs/Smarty.class.php';
 
$smarty = new Smarty;
 
$smarty->display('admin/main.tpl');
?>
 
 
admin/main.tpl is a real file too.

Re: smarty templating ERROR?

Posted: Thu Oct 29, 2009 4:01 am
by psychotomus
anybody know how to fix error?