$res = News::findOne($new_id)->toArray();yii框架的多表联查:controller层: //news 与 news_theme 是多对一的关系$infomsg=News::find()->with('newstheme')->asArray()->all() Read More
posted @ 2016-06-28 14:55 不解凡忧 Views(3886) Comments(0) Diggs(0) Edit