我也搜索了所有論壇,甚至我在whmcs論壇發佈我的問題,但沒有迴應。我需要的是,我在模塊中創建了一個插件,我想在此插件的鉤子中更改模板(從六個到五個)。目標是爲特定客戶更改模板。 我已經測試改變GET變種,但不工作:從鉤子更改whmcs模板
$_GET['systpl'] = 'five';
我還測試了這一點,但CSS文件不加載。它將我重定向到家:
global $smarty;
$template = $smarty->getTemplateVars('template');
$template = 'six';
$smarty->assign('template', $template);
$template = $smarty->getTemplateVars('template');
有什麼建議嗎?
無響應???? – Codinga