|
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 |
russol Smarty n00b
Joined: 12 Dec 2003 Posts: 2
|
Posted: Fri Dec 12, 2003 10:40 pm Post subject: templates_c' does not exist |
|
|
Hello all.
Yes, I know there are many posts about this subject, but still I haven't fount an answer...
the error I'm getting is:
Fatal error: Smarty error: the $compile_dir 'c:\interpub\wwwroot\smarty\templates_c' does not exist, or is not a directory. in C:\Inetpub\wwwroot\smarty\libs\Smarty.class.php on line 1144
the index.php file:
Code: |
require('C:\\Inetpub\\wwwroot\\smarty\\libs\\Smarty.class.php');
$smarty = new Smarty;
$smarty->use_sub_dirs = false;
$smarty->template_dir = 'C:\\Inetpub\wwwroot\smarty\templates';
$smarty->compile_dir = 'c:\\interpub\wwwroot\smarty\templates_c';
$smarty->config_dir = 'c:\\interpub\wwwroot\smarty\config';
$smarty->cache_dir = 'c:\\interpub\wwwroot\smarty\cache';
$smarty->assign('name','Ned');
$smarty->display('C:\\Inetpub\wwwroot\smarty\templates\index2.tpl');
|
In the smarty directory I've got all the 5 dirs:
cache
configs
libs
templates
templates_c
the last and first one have all the permissions.
What's wrong? |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Sat Dec 13, 2003 1:19 am Post subject: |
|
|
- on windows, your dir separator should look like \\ not \
- you need not use absolute paths when displaying your template fromt the template dir:
$smarty->display('index2.tpl');
- anyways, it looks like a typo and bad cut-and-pasting: interpub? I think you mean inetpub. |
|
Back to top |
|
russol Smarty n00b
Joined: 12 Dec 2003 Posts: 2
|
Posted: Sat Dec 13, 2003 10:10 am Post subject: |
|
|
boots wrote: | interpub? I think you mean inetpub. |
oops... Thankyou boots... |
|
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
|