Mam problem z szablonami smarty,
kod php:
<?
$smarty = new Smarty();
$smarty->template_dir = "template";
$smarty->compile_dir = "template/templates_c";
$smarty->config_dir = "template/configs";
$smarty->cache_dir = "template/cache";
$smarty->caching = false;
$smarty->left_delimiter = '<!--{';
$smarty->right_delimiter = '}-->';
$smarty->assign("imie", "Lucyfer");
$smarty->display("index.tpl");
?>
Użyłem tutaj aby mi się z skryptami javascript nie gryzł.
W pliku index.tpl mam:
(...) <!--{imie}-->
Problem jest taki że wyświetla mi błąd syntax error: unrecognized tag 'imie' (Smarty_Compiler.class.php, line 590). Dlaczego tak się dzieje? Przecież zmienna 'imie' została przypisana.