上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
摘要: 在配置文件中修改用于储存acess token的类 'user' => [ 'identityClass' => 'app\models\Customer', 'enableAutoLogin' => false,//disable the ... 阅读全文
posted @ 2015-08-20 12:34 S大好人S 阅读(1726) 评论(0) 推荐(0)
摘要: public function convertImgToBase64($imgFolderPath, $appID, $customerID) { $imageFolder = $imgFolderPath.$appID.'/'.$customerID.'/'; ... 阅读全文
posted @ 2015-08-13 15:52 S大好人S 阅读(993) 评论(0) 推荐(0)
摘要: e.g.为充值记录表进行排序,按照分数进行排序算出排名,当充值金额一样的时候,充值时间早的排名靠前 阅读全文
posted @ 2015-07-27 10:29 S大好人S 阅读(143) 评论(0) 推荐(0)
摘要: $sql = 'INSERT INTO `table1`(`customerID`, `advertisementID`, `consumedStatus`, `consumedTime`) VALUES (:customerID,:advertisementID,:con... 阅读全文
posted @ 2015-07-26 22:56 S大好人S 阅读(665) 评论(0) 推荐(0)
摘要: 例1$connection=Yii::app()->db;$sql="SELECT*FROM`project`ORDERBYidDESC";$command=$connection->createCommand($sql);$result=$command->queryAll();print_r($... 阅读全文
posted @ 2015-07-25 15:21 S大好人S 阅读(156) 评论(0) 推荐(0)
摘要: uasort($lastingDates, array($this, 'sortLastingDays'));//在这里sortLastingDays为排序方法//含义是按照数组中的lastingdate的大小进行排序public function sortLastingDays($a, $b){ ... 阅读全文
posted @ 2015-07-22 10:34 S大好人S 阅读(161) 评论(0) 推荐(0)
摘要: $queryResults = $returnClass::findBySql('SELECT * FROM `$returnClassName` where APPID >= :start && APPID 0, ':end' => $LastIndex - 1))->all(); ... 阅读全文
posted @ 2015-07-21 11:46 S大好人S 阅读(163) 评论(0) 推荐(0)
摘要: [ 'class' => 'app\actions\GzhAppFormatOutput',//此处要注意actions一定是GzhAppFormatOutput.php所在的文件夹 'objectsToFormat' => 'abc',... 阅读全文
posted @ 2015-07-20 21:14 S大好人S 阅读(243) 评论(0) 推荐(0)
摘要: 菜鸟从零学习数据库(二)——触发器本人水平有限,写此博客只为给那些像我一样的菜鸟一点小小的帮助,还请各位大牛不要见笑。数据库的重要性就不用我多说了吧,我们做的大多数项目都要跟数据库打交道。因此,熟练掌握数据库的各种操作,就成了一个程序员必备的技能。今天我们就来简单说一下触发器。 触发器简介: 触... 阅读全文
posted @ 2015-07-17 20:48 S大好人S 阅读(486) 评论(0) 推荐(0)
摘要: 在写UNIT TEST的时候,难免有的时候会遇到错误,遇到错误就需要把变量值打印出来:可以在代码中加:codecept_debug($returnMessage);然后在运行UNIT TEST的时候使用:codecept_debug($returnMessage)即可 阅读全文
posted @ 2015-07-09 15:46 S大好人S 阅读(397) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页