cola
'urlManager' => [
'class' => 'yii\web\UrlManager', 'enablePrettyUrl' => true, 'showScriptName' => false,
// 'enableStrictParsing' => true,
'rules' => [ 'suppliers' => 'supplier-profile/index', 'administrator' => 'supplier-profile/index', 'franchisee' => 'supplier-profile/index', 'order' => 'inquiry-record/index', 'orders' => 'inquiry-record/index', ], ],
在配置文件中应该可以实现吧
可以,哈哈
- cola 2017-06-14 已签到连续签到3天,获得了15个金钱
- cola 2017-06-13 已签到连续签到2天,获得了10个金钱
按照你的思路应该动这块吧
- cola 回答了问题 AR 查询数据库 降序升序怎么写?
亲测可能有误....
反正我用orderBy是正常的 源码是这么对应的
'xls' => 'application/vnd.ms-excel', 'xlsb' => 'application/vnd.ms-excel.sheet.binary.macroenabled.12', 'xlsm' => 'application/vnd.ms-excel.sheet.macroenabled.12', 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
这是我抓的我mime,自己简单写了个方法,虽然受限制,但是对我项目实用
/** * 校验Excel mime类型 * @return bool */ public function checkExcelFileMime() { $excel_mime_hash = [ 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' ]; if (in_array($this->excelFile->type, $excel_mime_hash, true)) { return true; } return false; }