摘要:
<form enctype="multipart/form-data" id="upForm"> <label class="btn btn-info" for="picture" title="Upload image file" id="uploadImgBtn" class="image_up 阅读全文
摘要:
一.配置 1、'lang_switch_on' => true, 2、'lang_list' => ['zh-cn','en-us',] 二.语言定义() 1、新建文件/en-us.php /thinkphp/lang/en-us.php return[ '中文'=>'chinese', '英文'= 阅读全文
摘要:
<script id="editor" type="text/plain" style="width:100%;height:200px;"></script> <script type="text/javascript"> //实例化编辑器//建议使用工厂方法getEditor创建和引用编辑器实例 阅读全文
摘要:
视图查询的时候本地数据库报错: 解决办法: 1、查看sql_mode STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUT 阅读全文
摘要:
mac 本地mysql用navicate打开表时遇到如下错误: 2013 - Lost connection to MySQL server at 'reading initial communication packet 直接重启mysql就ok了, ps -ef|grep mysql sudo 阅读全文
摘要:
主要是ci框架需要配置rewrite nginx.conf配置文件添加: location /wechat/ { if (!-e $request_filename) { rewrite ^/wechat/(.*)$ /wechat/index.php?q=$uri&$args; } } 注:wec 阅读全文
摘要:
访问php文件下载是因为没配置php-fpm 两个问题主要都是nginx.conf配置的问题: /usr/local/etc/nginx/nginx.conf server { listen 80; server_name localhost; root /usr/local/var/www; #c 阅读全文
摘要:
codeigniter框架需要path_info的支持,Apache默认支持path_info,但是nginx默认不支持,我们需要设置nginx,使得nginx支持path_info 网上试了好多方法最总才解决希望对大家有所帮助:(我的mac版的,具体设置看你们的需要,把重点的红色显示) serve 阅读全文
摘要:
去掉index.php: 1、修改配置文件, $config['index_page'] = ' '; 设置空 2、修改Apache,搜索 htaccess 将 AllowOverride None 改为 AllowOverride All 搜索 rewrite_module modules/mod 阅读全文
摘要:
1、多语言切换首先配置config文件默认语言 2、创建自己的语言包:language chinese english目录下的语言包文件名必须以 xx_lang.php 可根据自己的需求创建数组: 3、控制器如下: $this->lang->load($lang,$language); 加载语言包, 阅读全文