$res -> headers -> add('location','http://www.baidu.com'); 不行了
2017-04-01
$title = Title::find()->where(['id'=>1])->asArray()->one();
$doss = $title->hasOne('app\models\Doss',['title_id'=>'did'])->asArray()->all();
我第一句得到1个数据 它的did 对应下面那句的ID
第二句报错 Call to a member function hasOne() on a non-object求教!!
$doss = $title->hasOne('app\models\Doss',['title_id'=>'did'])->asArray()->all();
我第一句得到1个数据 它的did 对应下面那句的ID
第二句报错 Call to a member function hasOne() on a non-object求教!!
2017-03-09