![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 2 Pomógł: 0 Dołączył: 31.08.2007 Ostrzeżenie: (0%) ![]() ![]() |
Zainstalowałem sobie smarty ale nie działa mi on poprawnie Wyskakuje taki błąd:
Warning: Smarty error: unable to read resource: "index.tpl" in d:\usr\krasnal\www\90\smarty\libs\Smarty.class.php on line 1095 index.php: Kod <?php // load Smarty library require('d:/usr/krasnal/www/90/smarty/libs/Smarty.class.php'); $smarty = new Smarty; $smarty->template_dir = 'd:/usr/krasnal/www/90/templates'; $smarty->config_dir = 'd:/usr/krasnal/www/90/config'; $smarty->cache_dir = 'd:/usr/krasnal/www//cache'; $smarty->compile_dir = 'd:/usr/krasnal/www//templates_c'; $smarty->assign('name','fish boy!'); $smarty->display('index.tpl'); ?> index.tpl: Kod <html>
<body> Hello, {$name}! </body> </html> |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 13.08.2025 - 23:06 |