|
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 |
jagroop Smarty n00b
Joined: 09 May 2016 Posts: 2
|
Posted: Mon May 09, 2016 9:07 pm Post subject: Fatal error: Uncaught |
|
|
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 |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Tue May 10, 2016 6:10 am Post subject: |
|
|
You must set up your template dir
Code: | $smarty->setTemplateDir('C:\xampp\htdocs\smarty\templates'); |
|
|
Back to top |
|
jagroop Smarty n00b
Joined: 09 May 2016 Posts: 2
|
Posted: Tue May 10, 2016 9:14 am Post subject: |
|
|
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 |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
|
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
|