摘要: Yii2的ListView用法 控制器 public function actionListView() { $this->layout = false; $dataProvider = new ActiveDataProvider([ 'query' => Material::find()->or 阅读全文
posted @ 2022-11-09 12:10 胡勇健 阅读(86) 评论(0) 推荐(0)
摘要: Yii2 DetailView用法 控制器代码 public function actionDetailView(){ //获取一条记录 $model = Resource::find()->with(['resourceType'])->where(['id'=>7])->one(); retur 阅读全文
posted @ 2022-11-09 10:53 胡勇健 阅读(194) 评论(0) 推荐(0)