Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Smarty error: unable to read resource: "index.tpl"

 
Post new topic   Reply to topic    Smarty Forum Index -> Documentation
View previous topic :: View next topic  
Author Message
daoush
Smarty n00b


Joined: 01 May 2008
Posts: 2

PostPosted: Thu May 01, 2008 12:58 pm    Post subject: Smarty error: unable to read resource: "index.tpl" Reply with quote

Is there anybody can help me, why I got this message while I ran index.php in Basic Setup Sad

Warning: Smarty error: unable to read resource: "index.tpl" in E:\SMARTY_DIR\Smarty.class.php on line 1092

Its seems I have no index.tpl in /localhost/..../templates huh Sad

here is my folder structure :
$smarty->template_dir = '/localhost/smarty/guestbook/templates/';
$smarty->compile_dir = '/localhost/smarty/guestbook/templates_c/';
......
......

I put 'index.tpl' under '/localhost/smarty/guestbook/templates/'


Daoush.
Back to top
View user's profile Send private message
m1chu
Smarty Rookie


Joined: 22 Jun 2008
Posts: 5

PostPosted: Sun Jun 22, 2008 12:38 pm    Post subject: Reply with quote

I fix this problem by setting relative path. And I make another problem by this which I contend now.
Back to top
View user's profile Send private message
daoush
Smarty n00b


Joined: 01 May 2008
Posts: 2

PostPosted: Tue Jun 24, 2008 1:56 am    Post subject: Reply with quote

Yes , I think we should wrote :

$smarty->template_dir = 'E:\SMARTY_DIR\guestbook\templates\';
$smarty->compile_dir = 'E:\guestbook\templates_c\';
....
....
its working now, but not working with 'localhost'
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Documentation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP