摘要: 1.处理任何保存或获取数据的操作最好都写在模型(Model)中。这个概念通常被称为fat model。2.返回上一条插入记录的ID,$this->Example->getInsertID() 或$this->Example->getLastInsertID() 。app/Config/bootstrap.php文件 阅读全文
posted @ 2013-12-20 23:55 飞凡123 阅读(198) 评论(0) 推荐(0)
摘要: 返回$this->Post->buildQuery();返回: Array ( [conditions] => [fields] => [joins] => Array ( ) [limi... 阅读全文
posted @ 2013-12-20 21:49 飞凡123 阅读(306) 评论(0) 推荐(0)