smarty templating ERROR?
Posted: Sun Oct 25, 2009 6:20 pm
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
admin/main.tpl is a real file too.
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');
?>