/** * 显示他人发送的小纸条数据 * @author:josephLin */ public function actionIndex() { //显示用户的小纸条联系人 if ($provider = Message::getLatestContact(Yii::$app->user->id)) { return $this->render('index', ['provider' => $provider]); } else { echo "没有私信"; } }
/** * 显示他人发送的小纸条数据 * @author:josephLin */ public function actionIndex() { //显示用户的小纸条联系人 if ($provider = Message::getLatestContact(Yii::$app->user->id)) { return $this->render('index', ['provider' => $provider]); } else { echo "没有私信"; } }