最新回答 / qq_ar珼_0
Call to a member function getOrders() on a non-object首先報(bào)錯(cuò)的語句 ?報(bào)的是 ?getOrders() 這個(gè)函數(shù)所以你列出的 ?兩個(gè)對(duì)比語句 ?并不是問題的關(guān)鍵所在哦~
2015-08-07
+ 我來回答
回答最高可+2積分
最贊回答 / qq_灬展望未來_0
<...code...>將customer模型里面hasmany這句代碼后面的->all()去掉,我的這樣就可以了
最新回答 / qq_ar珼_0
命名空間 ?去 ?admin.php里面 改一下namespace frontend/models;然后在你的控制器 及 用到這個(gè)Admin的模型里use frontend/models/Admin;記得 只要是用到這個(gè) Admin的 地方 都要 use
2015-07-22
最新回答 / 落櫻bless
我是按照視頻先訪問自己服務(wù)器上面的basic/requirements.php 顯示配置符合Yii要求。然后我才再訪問的basic/web/index.php ? ? index.php全部代碼如下:<?php// comment out the following two lines when deployed to productiondefined('YII_DEBUG') or define('YII_DEBUG', true);defined('YII_ENV') or define('Y...
2015-07-20