Друзья подскажите плз, не получается устновить Smarty, хотя и делаю все как надо!
Поправьте если чтото не так:
1.Cкопировал содержимое папки libs в
[b]/usr/local/lib/php/Smarty/[/b]
2.Создал в /var/www/mysite/smarty папки
templates
templates_c
cache
configs
3. Создал в /var/www/mysite/htdocs/ файл index.php со след содержанием:
<?php
// put full path to Smarty.class.php
require('/usr/local/lib/php/Smarty/Smarty.class.php');
$smarty = new Smarty();
$smarty->setTemplateDir('/web/www.example.com/smarty/templates');
$smarty->setCompileDir('/web/www.example.com/smarty/templates_c');
$smarty->setCacheDir('/web/www.example.com/smarty/cache');
$smarty->setConfigDir('/web/www.example.com/smarty/configs');
$smarty->assign('name', 'Ned');
$smarty->display('index.tpl');
?>
4.Создал в /templates файл index.tpl
5. И наконец
chown nobody:nogroup /var/www/mysite/smarty/templates_c
chown nobody:nogroup /var/www/mysite/smarty/cache
chmod 770 -v /var/www/mysite/smarty/templates_c
chmod 770 -v /var/www/mysite/smarty/cache
При открытии index.php вижу пустую страницу((
Подскажите пожалуйста в чем может быть проблема? очень надеюсь на вашу помошь!!