
uzywam np: $tpl->display("page.tpl", "cacheid"); i wywala mi blad
Cytat
Warning: fopen(cache/\hello\hello\eeaf1bbb043b9bc109686cf459ff34e3.php) [function.fopen]: failed to open stream: No such file or directory in c:\server\www\source2\smartylight\src\class.template.php on line 215
Warning: fwrite(): supplied argument is not a valid stream resource in c:\server\www\source2\smartylight\src\class.template.php on line 216
Warning: fclose(): supplied argument is not a valid stream resource in c:\server\www\source2\smartylight\src\class.template.php on line 217
Warning: fwrite(): supplied argument is not a valid stream resource in c:\server\www\source2\smartylight\src\class.template.php on line 216
Warning: fclose(): supplied argument is not a valid stream resource in c:\server\www\source2\smartylight\src\class.template.php on line 217
w skrypcie uzywam:
<?php $tpl = new template; $tpl->force_compile = false; $tpl->cache_dir = 'cache/'; $tpl->cache = true; $tpl->cache_lifetime = 3600; $tpl->compile_dir = \"templates_c/\"; $tpl->template_dir = \"templates/\"; // ..... $tpl->display('index.tpl', \"index\"); ?>
blad swiadczy o tym ze sa problemy otwarciem pliku, moze robie cos zle ale to sa manualowe przyklady
