4 回答老師您好,是這樣我編寫好test.tpl文件后直接在瀏覽器中輸入index.php?controller=test&method=show結果卻是Uncaught --> Smarty: unable to write file template_c,而等我到系統里的index.php中運行一次C('test','show')結果正常,再改回原來的C($controller,$method)后在瀏覽器中再次輸入index.php?controller=test&method=show,結果也正常,這是為什
2017-03-30
在根目錄的function.php文件中定義的方法,只要在index.php中引入function.php文件就可以使用該方法
2017-03-30
function.php中自定義的函數。