已采納回答 / Echocc
模板輸出的問題,把TP中的模板標(biāo)簽改為<{}>,這樣和老師的一樣,通過設(shè)置 TMPL_L_DELIM 和 TMPL_R_DELIM 進(jìn)行更改。在項目配置文件中定義: 'TMPL_L_DELIM'=>'<{', ? ? ? 'TMPL_R_DELIM'=>'}>'也可以在html中輸出的時候改為這樣 {$timestamp},{$noncestr},{$signature}
2016-10-24
另外如果出現(xiàn)_STORAGE_WRITE_ERROR_:./weixin/Runtime/Cache/Home/54s98fas48asd7f6as4f6as54.php問題則是因為——權(quán)限問題。在根目錄下給 weixin(你自己的文件夾名)文件夾賦予權(quán)限
chmod 0777 -R weixin
即可
chmod 0777 -R weixin
即可
2016-10-13
assign()問題,可能是html文件地址對不對,display(‘share’)默認(rèn)調(diào)用share.html,應(yīng)該在view文件夾-》Index文件夾-》share.html文件?,html文件對可能是老師的__construct()這個方法影響了,我刪了這個方法就可以調(diào)用到了。
頂部的function __construct(){ }刪除
頂部的function __construct(){ }刪除
2016-10-13
function shareWx(){
...
$this->assign()
...
}
同學(xué)老師,請幫我解惑下。
錯誤提示:
fatal error: call to a member function assign() on null in /data1/..../Imooc/Runtime/~runtime.php on line 1
...
$this->assign()
...
}
同學(xué)老師,請幫我解惑下。
錯誤提示:
fatal error: call to a member function assign() on null in /data1/..../Imooc/Runtime/~runtime.php on line 1
2016-09-22