2013年11月27日

Yii AR Model CRUD数据库操作

摘要: Yii AR很好很强大,但刚开始不知道怎么使用,可以先看下官方文档官方文档:http://www.yiichina.com/guide/database.ar下面是我对AR的一些理解对于一个Model Post 有如下的4中查询方法,返回对象或者对象数组。// find the first row satisfying the specified condition复制代码$post=Post::model()->find($condition,$params);// find the row with the specified primary key$post=Post::model 阅读全文

posted @ 2013-11-27 11:38 imxiu 阅读(512) 评论(0) 推荐(0) 编辑

导航