Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: compile groups w Smarty-Light
Forum PHP.pl > Forum > PHP
Kinool
wywala mi blad jak che uzyc compile groups sad.gif

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


w skrypcie uzywam:
  1. <?php
  2. $tpl = new template;
  3. $tpl->force_compile = false;
  4. $tpl->cache_dir = 'cache/';
  5. $tpl->cache = true;
  6. $tpl->cache_lifetime = 3600;
  7. $tpl->compile_dir = &#092;"templates_c/\";
  8. $tpl->template_dir = &#092;"templates/\";
  9. // .....
  10.  
  11. $tpl->display('index.tpl', &#092;"index\");
  12. ?>


blad swiadczy o tym ze sa problemy otwarciem pliku, moze robie cos zle ale to sa manualowe przyklady sad.gif
ActivePlayer
Kod
Warning: fopen(cache/\hello\hello\eeaf1bbb043b9bc109686cf459ff34e3.php)


Spójrz na to jeszcez raz... widzisz tutaj cos nie tak ? (w sciezce)
Kinool
tez o tym mysllem ale to i tak nie to smile.gif

bo blad tak czy siak sypie angrysmiley.gif moze jest cos nie tak z tym ze jest dublowany katalog "hello\hello" no pojecia nie mam, w klasie nichce grzebac bo teoretycznie powinno to dzialac

ale chyba je przerobie conieco moze cos sie uda smile.gif
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.