|
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 |
lodjikz Smarty Rookie
Joined: 21 Jul 2005 Posts: 9
|
Posted: Sun Jul 24, 2005 4:31 pm Post subject: smarty isnt compiling my templates... |
|
|
hi,
im unable to compile any template to templates_c and dont know why. tryed the fish boy example and still smarty cant compile it.
any suggestion?
my index.php:
<?php
// load Smarty library
require('Smarty.class.php');
$smarty = new Smarty;
$smarty->template_dir = 'c:/Inetpub/smarty/fatimamundi/templates';
$smarty->config_dir = 'c:/Inetpub/smarty/fatimamundi/templates';
$smarty->cache_dir = 'c:/Programas/PHP-5.0.4/smarty/cache';
$smarty->compile_dir = 'c:/Programas/PHP-5.0.4/smarty/templates_c';
$smarty->assign('name','fish boy!');
$smarty->display('index2.tpl');
?>
my error:
PHP Warning: Smarty::fetch(c:/Programas/PHP-5.0.4/smarty/templates_c\%%93^934^9348F8B7%%index2.tpl.php) [function.fetch]: failed to open stream: No such file or directory in c:\Programas\PHP-5.0.4\smarty\libs\Smarty.class.php on line 1251 PHP Warning: Smarty::fetch() [function.include]: Failed opening 'c:/Programas/PHP-5.0.4/smarty/templates_c\%%93^934^9348F8B7%%index2.tpl.php' for inclusion (include_path='.;c:\Programas\PHP-5.0.4\smarty\libs') in c:\Programas\PHP-5.0.4\smarty\libs\Smarty.class.php on line 1251
this directory as write permissions for user IUSR_XX.
if smarty doesnt compile the file the other errors are just a consequence.
Thanks for the help! |
|
Back to top |
|
median Smarty Rookie
Joined: 24 Jul 2005 Posts: 8
|
Posted: Sun Jul 24, 2005 5:29 pm Post subject: Re: smarty isnt compiling my templates... |
|
|
lodjikz wrote: | hi,
this directory as write permissions for user IUSR_XX.
|
I thing it will be the permission problem. Try to set the directory permission to be more liberal. |
|
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
|