|
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 |
yvan Smarty n00b
Joined: 17 Dec 2003 Posts: 2
|
Posted: Thu Dec 18, 2003 2:37 am Post subject: the $compile_dir 'templates_c' does not exist |
|
|
Hi,
I am installing smarty and I always have the same problem:
Fatal error: Smarty error: the $compile_dir 'templates_c' does not exist, or is not a directory. in C:\Document\cours_2info\php\www\Projet_pharmacie\Smarty\libs\Smarty.class.php on line 1144
My directories are:
C:\Document\cours_2info\php\www\Projet_pharmacie\Smarty\libs\cache
C:\Document\cours_2info\php\www\Projet_pharmacie\Smarty\libs\templates
C:\Document\cours_2info\php\www\Projet_pharmacie\Smarty\libs\templates_c
C:\Document\cours_2info\php\www\Projet_pharmacie\Smarty\libs\configs
C:\Document\cours_2info\php\www\Projet_pharmacie\Smarty\libs\templates\mep.tpl
C:\Document\cours_2info\php\www\Projet_pharmacie\messages\mep.php
The mep.php code is:
<?php
require('Smarty.class.php');
$mySmarty = new Smarty;
$mySmarty->template_dir= 'c:\document\cours_2info\php\www\Projet_pharmacie\Smarty\libs\templates ';
$mySmarty->compile_dir= 'c:\document\cours_2info\php\www\Projet_pharmacie\Smarty\libs\templates_c ';
$mySmarty->config_dir= 'c:\document\cours_2info\php\www\Projet_pharmacie\Smarty\libs\config ';
$mySmarty->cache_dir= 'c:\document\cours_2info\php\www\Projet_pharmacie\Smarty\libs\cache ';
...
$mySmarty->display('mep.tpl');
?>
the safe_mode in php.ini is 'off' .
the include_path =".;C:\Document\cours_2info\php\www\Projet_pharmacie\Smarty\libs\;... in php.ini
What's wrong?
Thanks for your regards,
Yvan |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Thu Dec 18, 2003 2:39 am Post subject: |
|
|
It looks like you need to replace your backslashes (\) either with forward slashes (/) or (\\) -- or use the php DIRECTORY_SEPARATOR constant for portability. Windows is a bit of a killer like that
This does NOT apply to your php.ini settings which look correct as is. |
|
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
|