0
在prestashop中,我需要將存儲在一個PHP文件的變量中的輸出值傳遞到我的模塊文件夾中的模板文件。如何通過smarty變量resulttring輸出到我的模板fie。在prestashop如何將值從一個PHP文件傳遞到模板文件
PHP代碼
<?php
$output = "welcome";
$smarty->assign('resultstring', $output);
?>
模板文件中的代碼
{if $resultstring == 'welcome'}
<h6>Hai welcome</h6>
{else}
<h6>not exist </h6>
{/if}
您是否閱讀過[this](http://doc.prestashop.com/display/PS16/Displaying+content+on+the+front-office)? – yenshirak
Pefrom這個簡單的條件是否需要在prestashop中創建一個模塊?@ user2089987 – user2089987
是否要直接訪問modules文件夾中的單獨PHP文件? – yenshirak