CI学习
hello_nine
stay hungry
展开
-
CI3.0笔记
一.CI框架的指定URL操作除了常规的Module/Controller/Action外,我们还可以在Application/config/routes.php 配置指定的操作:1.指定跳转:$route['abc'] = 'test'; 当输入abc时指定跳转到test控制器;2.复杂跳转:$route['abc/(:any)']['put'] = 'test/index/$1'; 1.原创 2016-08-20 23:00:04 · 350 阅读 · 0 评论 -
CI框架中load库上传xls,xlsx和zip无法识别的解决方法
在CI中,当上传xls,xlsx等格式时,偶尔会有The filetype you are attempting to upload is not allowed的提示,这是因为在application/config/mime中,xls和xlsx中没有写指定的格式, 解决办法1: 把上传到服务器的文件打印出来,查看其样式,加载到mime中解决办法2: 可能把样式加载进入之后还是没办法解决原创 2016-09-18 23:38:19 · 1466 阅读 · 0 评论