原文:Fatal error Using $this when not in object context in

大致意思是 this 沒有上下文,原因是沒有對此類進行實例化。 出現此錯誤的原因是:在FileCommand.php中使用 this gt 方法 屬性。 this 不是不可以用,而是要看情況用。在實例化的 類中使用 this是可以的 class Person private var name private var sex public function showName echo this gt ...

2015-07-30 12:09 0 11950 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM