2012年8月16日
摘要: !== 和 === 相反 阅读全文
posted @ 2012-08-16 23:26 莫笑 阅读(246) 评论(0) 推荐(0) 编辑
摘要: implode(separator,array)参数描述separator可选。规定数组元素之间放置的内容。默认是 ""(空字符串)。array必需。要结合为字符串的数组。转回:explode 阅读全文
posted @ 2012-08-16 16:37 莫笑 阅读(185) 评论(0) 推荐(0) 编辑
  2012年8月15日
摘要: 1,api与页面需求对应,要完全了解页面需求2,名称严谨,唯一3,要仔细- - 阅读全文
posted @ 2012-08-15 17:28 莫笑 阅读(147) 评论(0) 推荐(0) 编辑
  2012年8月10日
摘要: Yii::app()->request->userHostAddress; 阅读全文
posted @ 2012-08-10 15:21 莫笑 阅读(4110) 评论(0) 推荐(1) 编辑
摘要: 1: 通过find方法$res = findAll(...); (or findAllByAttributes)$num = count($res)2: 通过count方法$res1 = countByAttributes(...);$res2 = countBySql(...);3: 通过query方法$sql="SELECTCOUNT(*)asclientsFROMclient_table";$command=Yii::app()->db->createCommand($sql);$results=$command->queryAll();$numCl 阅读全文
posted @ 2012-08-10 10:28 莫笑 阅读(1832) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2012-08-10 09:10 莫笑 阅读(118) 评论(0) 推荐(0) 编辑