Oto konfiguracja jaka podaja w manualu :
index.php
<?php
// load Smarty library
require('Smarty.class.php');
$smarty = new Smarty;
$smarty->template_dir = 'd:/inetpub/wwwroot/smarty/templates';
$smarty->config_dir = ' d:/inetpub/wwwroot/smarty/config';
$smarty->cache_dir = 'd:/smarty/smarty_cache';
$smarty->compile_dir = 'd:/smarty/smarty_templates_c';
$smarty->assign('name','fish boy!');
$smarty->display('index.tpl');
?>
A oto moja konfiguracja
index.php
<?php
// load Smarty library
require('Smarty.class.php');
$smarty = new Smarty;
$smarty->template_dir = 'c:/Program Files/WebServ/httpd/smarty/templates';
$smarty->config_dir = 'c:/Program Files/WebServ/httpd/smarty/config';
$smarty->cache_dir = 'c:/smarty/cache';
$smarty->compile_dir = 'c:/smarty/templates_c';
$smarty->assign('name','fish boy!');
$smarty->display('index.tpl');
?>
wszystkie pliki sa na miejscu brakuje tylko linijki w php.ini ktorej nie moge dopisac......
A to moj plik index.tpl ktory znajduje sie w katalogu
c:/Program Files/WebServ/httpd/smarty/templates
<?php
<html>
<body>
Hello, {$name}!
</body>
</html>
?>
wszystko powinno dzialac bo jest na miejscu ale brakuje linijki w php.ini
Czyli jednym slowem php nie ma dostepu do c:/smarty/libs
Ktos wie jak to naprawic w takim przypadku ?