0
"/ themes/my_template/modules/my_modul"폴더의 prestashop (smarty)에 tpl의 PHP 파일을 포함시키고 싶습니다.Prestashop and smarty PHP 코드
예 :
<?php
include('/tools/smarty/Smarty.class.php');
$smarty = new Smarty;
$vorname="Horst";
$nachname="Meyer";
$smarty->assign('vorname',$vorname);
$smarty->assign('nachname',$nachname);
// ausgabe
$smarty->display('my_template.tpl');
?>
하지만 변수 {$의 vorname}이 표시되지 않습니다. 내가 도대체 뭘 잘못하고있는 겁니까?