|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
daoush Smarty n00b
Joined: 01 May 2008 Posts: 2
|
Posted: Thu May 01, 2008 12:58 pm Post subject: Smarty error: unable to read resource: "index.tpl" |
|
|
Is there anybody can help me, why I got this message while I ran index.php in Basic Setup
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
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 |
|
m1chu Smarty Rookie
Joined: 22 Jun 2008 Posts: 5
|
Posted: Sun Jun 22, 2008 12:38 pm Post subject: |
|
|
I fix this problem by setting relative path. And I make another problem by this which I contend now. |
|
Back to top |
|
daoush Smarty n00b
Joined: 01 May 2008 Posts: 2
|
Posted: Tue Jun 24, 2008 1:56 am Post subject: |
|
|
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 |
|
|
|
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
|