摘要:
$formatter = \Yii::$app->formatter; // output: January 1, 2014 echo $formatter->asDate('2014-01-01', 'long'); // output: 12.50% echo $formatter->asPer 阅读全文
摘要:
Pjax::begin(['id' => 'pjax-group', 'timeout' => false, 'enablePushState' => false, 'clientOptions' => ['method' => 'POST']]); javascript: $.pjax.reloa 阅读全文
摘要:
rule规则里面增加 'checkExtensionByMimeType'=>false, 阅读全文
摘要:
第一步 DUMP TRANSACTION databasename WITH NO_LOG -- 第二步:截断事务日志 BACKUP LOG databasename WITH NO_LOG -- 第三步:收缩数据库 DBCC SHRINKDATABASE(databasename) 阅读全文
摘要:
/* add sorting icons to gridview sort links */a.asc:after, a.desc:after { position: relative; top: 1px; display: inline-block; font-family: 'Glyphicon 阅读全文
摘要:
然后我们上代码看看具体怎么实现的下拉搜索 阅读全文
摘要:
别名开头,路径指定view文件@app/views/site/about.php //开头,使用 app目录下面的views//site/about.php /开头,使用当前Module中的views/site/about.php 直接使用字符串,ViewContextInterface接口返回的v 阅读全文
摘要:
use yii\log\FileTarget; $time = microtime(true); $log = new FileTarget(); $log->logFile = Yii::$app->getRuntimePath()."/logs/a.log'; $log->message[] = 阅读全文
摘要:
siteController 中,要将captcha 列为任意用户可以访问 阅读全文