嗯..那真的不同問題 我取$臨客這個 $鏈接= $ DB-> GETALL(「SELECT * FROM {$tables['link']['name']} WHERE STATUS =「2從數據庫 鏈接'AND CATEGORY_ID = 「$ DB-> QSTR($ ID)。」。{$ feat_where} {$ expire_where} ORDER BY {$sort_cols[$sort
我遇到了通過引用修改smarty變量的問題。這裏是我想要做的事: class foo {
$property;
public function getProperty(){
return $this->$property;
}
public function index(&$smarty){
$smarty->assign('test
<?LANG(no_download, 'you are not allowed to download')
代替 $lang[no_download]
我有什麼,我認爲是在模板中嵌入語言字符串的更好方法。 在幾乎所有的PHP應用程序中,主要的語言佔位符格式如<?=$lang['no_download']?>或{{no_download}}。其他設計人員/開發人員/翻譯人員很難在不參考語言