05 2016 档案

摘要:$array = [ ['id' => '123', 'name' => 'aaa', 'class' => 'x'], ['id' => '124', 'name' => 'bbb', 'class' => 'x'], ['id' => '345', 'name' => 'ccc', ' 阅读全文
posted @ 2016-05-20 16:37 Yeah,程序猿 阅读(215) 评论(0) 推荐(0) 编辑
摘要:$formatter = \Yii::$app->formatter; // output: January 1, 2014 echo $formatter->asDate('2014-01-01', 'long'); // output: 12.50% echo $formatter->asPer 阅读全文
posted @ 2016-05-20 10:47 Yeah,程序猿 阅读(570) 评论(0) 推荐(0) 编辑
摘要:Pjax::begin(['id' => 'pjax-group', 'timeout' => false, 'enablePushState' => false, 'clientOptions' => ['method' => 'POST']]); javascript: $.pjax.reloa 阅读全文
posted @ 2016-05-13 15:24 Yeah,程序猿 阅读(413) 评论(0) 推荐(0) 编辑
摘要:rule规则里面增加 'checkExtensionByMimeType'=>false, 阅读全文
posted @ 2016-05-12 10:32 Yeah,程序猿 阅读(520) 评论(0) 推荐(0) 编辑
摘要:第一步 DUMP TRANSACTION databasename WITH NO_LOG -- 第二步:截断事务日志 BACKUP LOG databasename WITH NO_LOG -- 第三步:收缩数据库 DBCC SHRINKDATABASE(databasename) 阅读全文
posted @ 2016-05-09 15:43 Yeah,程序猿 阅读(1100) 评论(0) 推荐(0) 编辑
摘要:/* add sorting icons to gridview sort links */a.asc:after, a.desc:after { position: relative; top: 1px; display: inline-block; font-family: 'Glyphicon 阅读全文
posted @ 2016-05-06 11:26 Yeah,程序猿 阅读(443) 评论(0) 推荐(0) 编辑
摘要:然后我们上代码看看具体怎么实现的下拉搜索 阅读全文
posted @ 2016-05-05 11:51 Yeah,程序猿 阅读(321) 评论(0) 推荐(0) 编辑
摘要:别名开头,路径指定view文件@app/views/site/about.php //开头,使用 app目录下面的views//site/about.php /开头,使用当前Module中的views/site/about.php 直接使用字符串,ViewContextInterface接口返回的v 阅读全文
posted @ 2016-05-04 13:44 Yeah,程序猿 阅读(334) 评论(0) 推荐(0) 编辑
摘要:use yii\log\FileTarget; $time = microtime(true); $log = new FileTarget(); $log->logFile = Yii::$app->getRuntimePath()."/logs/a.log'; $log->message[] = 阅读全文
posted @ 2016-05-04 13:00 Yeah,程序猿 阅读(236) 评论(0) 推荐(0) 编辑
摘要:siteController 中,要将captcha 列为任意用户可以访问 阅读全文
posted @ 2016-05-02 20:13 Yeah,程序猿 阅读(438) 评论(0) 推荐(0) 编辑