1 protected $_link = array( 2 'User'=>array( //'User'代表1对N中的1的表名 3 'mapping_type'=>BELONGS_TO, //关联类型 4 ... Read More
1 public function test(){ 2 $m=M('Message'); 3 4 import('ORG.Util.Page');// 导入分页类 5 $count = $m->count();// 查... Read More