smarty templating ERROR?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

smarty templating ERROR?

Post 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.
Last edited by psychotomus on Thu Oct 29, 2009 4:14 am, edited 1 time in total.
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

Re: smarty templating ERROR?

Post by psychotomus »

anybody know how to fix error?
Post Reply