Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Fatal error: Uncaught

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
jagroop
Smarty n00b


Joined: 09 May 2016
Posts: 2

PostPosted: Mon May 09, 2016 9:07 pm    Post subject: Fatal error: Uncaught Reply with quote

Hi!

I configured the smarty first time and new to php. I have created index.tpl in C:\xampp\htdocs\smarty\templates and php file in netbeans but when i run then i got following error :

Fatal error: Uncaught --> Smarty: Unable to load template file 'index.html' <-- thrown in C:\smarty\libs\sysplugins\smarty_internal_template.php on line 139

. can any one help me plz
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Tue May 10, 2016 6:10 am    Post subject: Reply with quote

You must set up your template dir
Code:
$smarty->setTemplateDir('C:\xampp\htdocs\smarty\templates');
Back to top
View user's profile Send private message
jagroop
Smarty n00b


Joined: 09 May 2016
Posts: 2

PostPosted: Tue May 10, 2016 9:14 am    Post subject: Reply with quote

U.Tews wrote:
You must set up your template dir
Code:
$smarty->setTemplateDir('C:\xampp\htdocs\smarty\templates');



Hi

Thanks for reply! How to set up template dir. where i need to set up. can u explain bit plz
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Tue May 10, 2016 11:38 am    Post subject: Reply with quote

http://www.smarty.net/documentation
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs 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