I have XAMPP installed and configured. I'm trying to install Smarty 3.1.18 and I'm running into a bit of an issue.
I've changed my php.ini file to add the smarty/libs directory to the includes.
I've unzipped smarty into my c:\smarty folder
I made my smarty\templates and config folders in the htdocs folder
I've also made my cache and templates_c folders inside the c:\smarty folder.
I made my index.php file to include all the directories and made my index.tpl file and placed that in my templates folder.
When I run the index.php file I return this:
Fatal error: Uncaught --> Smarty: Unable to load template file 'index.tpl' <-- thrown in C:\smarty\libs\sysplugins\smarty_internal_templatebase.php on line 127
Any ideas??
I have run the testinstall() script and this is what it returns :
Smarty Installation test...
Testing template directory...
FAILED: .\templates\ does not exist.
Testing compile directory...
FAILED: .\templates_c\ does not exist.
Testing plugins directory...
C:\smarty\libs\plugins is OK.
Testing cache directory...
FAILED: .\cache\ does not exist.
Testing configs directory...
FAILED: .\configs\ does not exist.
Testing sysplugin files...
... OK
Testing plugin files...
... OK
Tests complete.
I've checked and rechecked my file locations and directory locations and this is where they are:
$smarty->template_dir = 'c:/xampp/htdocs/smarty/templates';
$smarty->config_dir = ' c:/xampp/htdocs/smarty/config';
$smarty->cache_dir = 'c:/smarty/cache';
$smarty->compile_dir = 'c:/smarty/templates_c';