原文:Trying to get property 'art_id' of non-object

Trying to get property art id of non object 正在嘗試獲取非對象的 art id 屬性。 我之前也是這么寫的沒出問題 lt td gt val gt art id lt td gt ,然后在遍歷文章 的時候不好使,好氣啊 上網查 改成 lt td gt val art id lt td gt 就好了,因為 gt 是訪問對象,而這個是數組,要換成 這種訪問 ...

2019-03-03 22:36 0 1555 推薦指數:

查看詳情

[yii]Trying to get property of non-object

今天接觸gridview的時候,發現總是報錯,如圖。 總覺得代碼沒問題。因為 這個都沒有問題,表也核對過了,也沒有問題。 但是用戶信息總調用不出來,經過猜測,“Trying to get property of non-object” 看着意思猜測可能是內容 ...

Mon Jun 23 02:01:00 CST 2014 0 23994
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM